enabling java with php

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
jbolger
Forum Newbie
Posts: 1
Joined: Wed Nov 17, 2004 4:57 pm
Location: Dublin, Ireland

enabling java with php

Post by jbolger »

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

Image

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]
Post Reply