enabling java with php
Posted: Wed Nov 17, 2004 5:18 pm
Im trrying to get the java extension working and im having problems with it.
Im running PHP Version 5.0.2 and java version 1.5 and Apache 2 server.
Ive edited the php.ini file as follows;
Uncommented the line ;extension=php_java.dll to be extension=php_java.dll
Added the lines
java.library=C:/jdk1.5.0/jre/bin/client/jvm.dll
java.library.path=D:/Dev/PHP/PHP5/ext/php_java.dll
java.home=C:/jdk1.5.0
java.class.path=D:/Dev/PHP/PHP5
My java home is C:\jdk1.5.0
It picks up all the changes that i make ok but when i go to run a php page with java extension code in it, it blows up on me with the following error

Do i need to recompile the php source code using the --with-java option and if i do, how would i go about it running off a windows 2000 machine or could anyone possibly point me to a good tutorial explaining how to do it!
Thanx in advance[/img][/list]
Im running PHP Version 5.0.2 and java version 1.5 and Apache 2 server.
Ive edited the php.ini file as follows;
Uncommented the line ;extension=php_java.dll to be extension=php_java.dll
Added the lines
java.library=C:/jdk1.5.0/jre/bin/client/jvm.dll
java.library.path=D:/Dev/PHP/PHP5/ext/php_java.dll
java.home=C:/jdk1.5.0
java.class.path=D:/Dev/PHP/PHP5
My java home is C:\jdk1.5.0
It picks up all the changes that i make ok but when i go to run a php page with java extension code in it, it blows up on me with the following error

Do i need to recompile the php source code using the --with-java option and if i do, how would i go about it running off a windows 2000 machine or could anyone possibly point me to a good tutorial explaining how to do it!
Thanx in advance[/img][/list]