I have spent hours and hours pouring over a java/php install. I reviewed the Java and PHP article here (http://www.phpbuilder.com/columns/marknold20001221.php3) and the many messages reporting a problem I am experiencing. After attempting all the various configuration tweaks and pouring over the forums, I am right where I started.
I successfully install java support (sun sdk 1.3.1_01) for PHP 4.05 running as an Apache module on Windows NT 5.0 build 2195. I am able to verify java is accessible via PHP using the test scripts from the tutorial. Sometimes, they run only once. Sometimes, they run up to a dozen times. In all cases, they both eventually throw the error, Unable to create Java Virtual Machine.
In desperation, I've moved my jdk/jre installation to various logical drives to match precisely the environmental settings others have reported to work ... no luck.
Here's my php.ini [java] section currently which works for a few runs before failing:
java.class.path = "M:\PHP\extensions\php_java.jar;M:\Apache\myclasses;C:\jdk\jre\lib"
java.home = "C:\jdk\bin;C:\jdk\jre\lib"
java.library.path = "M:\PHP\extensions;C:\jdk\jre\lib;C:\jdk\jre\bin"
java.library = C:\jdk\jre\bin\hotspot\jvm.dll
and my classpath:
CLASSPATH=c:\jdk\bin\;m:\PHP\extensions\php_java.dll
This problem has been widely reported but never resolved with any precision ... seems to be hit and miss from win32 to win32 install.
Does anyone have any other configuration insights for this issue? Thanks!