|
From: <php...@li...> - 2007-12-11 19:11:53
|
Please help,
I'm starting to get crazy about this.
I have tried everything from begining, removed MySQL server and XAMPP, install xamp, set everything again as in the tutorials (INSTALLJ2EE, INSTALLJ2SE), and I'm always getting error
Fatal error: java() [<a href='function.java'>function.java</a>]: Unable to load Java Library jvm.dll, error: The specified module could not be found. in C:\xampp\htdocs\myApp\test.php on line 4
when trying to start php page
<?php
if(!extension_loaded("java"))
require_once("http://localhost:8080/JavaBridge/java/Java.inc");
$s = new Java("java.lang.String", "hello");
?>
However, if I start test.bat from PHP/Java bridge, I'm getting the following error concerning php-cgi:
Invoking php: [php-cgi, -n, -d, allow_url_include=On, F:\Materijali za doktorski
rad\instalacije\PHP\PHP-Java Bridge\php-java-bridge_4.3.1a_j2ee2\test.php]
java.lang.RuntimeException: Could not run PHP ([php-cgi, -n, -d, allow_url_inclu
de=On, F:\Materijali za doktorski rad\instalacije\PHP\PHP-Java Bridge\php-java-b
ridge_4.3.1a_j2ee2\test.php]), please check if php-cgi is in the path.
at TestInstallation.start(TestInstallation.java:319)
at TestInstallation.main(TestInstallation.java:243)
Caused by: java.io.IOException: Cannot run program "php-cgi": CreateProcess erro
r=2, The system cannot find the file specified
at java.lang.ProcessBuilder.start(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)
at TestInstallation.start(TestInstallation.java:317)
... 1 more
Caused by: java.io.IOException: CreateProcess error=2, The system cannot find th
e file specified
I suppose that I should set the path to the php-cgi, so I have done it at the system PATH "C://xamp/php" and in php.ini
extension=php_java.dll
[java]
java.hosts="127.0.0.1:8080"
java.servlet=User
java.library.path="C:\xampp\php\ext"
I have also checked allow_url_include=On in php.ini and it is set to On.
I do not have any more ideas what should be the reason.
Thank you for help
Zoran
Zoran Jeremic <jer...@ya...> wrote:
Hi,
>Please install the PHP/Java Bridge as described in the INSTALL.J2EE document.
I have installed PHP/Java Bridge. Its works fine with the provided examples (NumberGuess PHP), but not with my example that is deployed to apache:
<?php
if(!extension_loaded("java"))
require_once("http://localhost:8080/JavaBridge/java/Java.inc");
$s = new Java("java.lang.String", "hello");
?>
It gives me the error:
Fatal error: java() [<a href='function.java'>function.java</a>]: Unable to load Java Library C:\Program Files\Java\jdk1.6.0_02\jre\bin\server, error: The specified module could not be found. in C:\xampp\htdocs\example.php on line 7
If I start phpInfo() these values are available:
java.class.path no value no value java.home C:\Program Files\Java\jdk1.6.0_02 C:\Program Files\Java\jdk1.6.0_02 java.library jvm.dll jvm.dll java.library.path C:\php\ext C:\php\ext
php...@li... wrote:
Hi,
> I have problem to connect PHP with java application using PHP/java bridge.
[...]
> If I use php_java.jar and php_java.dll
these files do not belong to the PHP/Java Bridge.
Please install the PHP/Java Bridge as described in the INSTALL.J2EE document.
If you want to use the above files please report the bug to the project or vendor providing
php_java.jar/php_java.dll.
Regards,
Jost Boekemeier
Machen Sie Yahoo! zu Ihrer Startseite. Los geht's:
http://de.yahoo.com/set
-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
php-java-bridge-users mailing list
php...@li...
https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users
---------------------------------
Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now.
---------------------------------
Never miss a thing. Make Yahoo your homepage.
|