Click to See Complete Forum and Search --> : unable to create java virtual machine


Anon
02-13-2001, 11:33 PM
sir,
i want to use php-java together..so i modified php.ini as given in article of this site php & java as follows..
[java]
extension=php_java.dll
java.library.path=c:\web\php4\extensions\
java.class.path="c:\web\php4\extensions\jdk1.2.2\php_java.jar;c:\myclasses"

and also followed other installation steps required like copying required dll's into winnt\system32

---- i am using php4.0.3 & download those dll's

i could not get why i am getting this error..
any help would highly appreciated..

thanks in advance
anitha

akilov
02-14-2001, 06:56 AM
anitha,

Did you verify that php_java.dll is located in the directory that's specified in your extension_dir directive? Also, is php_java.jar located in c:\web\php4\extensions\jdk1.2.2 as you specified?

Also, where did you download the php_java.dll and php_java.jar from? Make sure that the version of these files you got is compatible with php4.0.3 (that is, they were also built from that code base). The best place I know of to get binary versions of PHP (for Win32) and compatible extensions is http://www.php4win.de.

BTW, copying the dll's to winnt\system32 is not really required provided that they are in your PATH.

Alex