Hello,

I'm trying to run PHP with Java support and don't get it to work. First
I compiled PHP '--with-java=/usr/local/jdk1.2.2/'. Then I added this to
the PHP.ini file:

[Java]
java.home=/usr/local/jdk1.2.2
java.class.path=/usr/local/lib/php/extensions/php_java.jar:/usr/local/jdk1.2.2/src.jar
java.library.path=/usr/local/lib:/usr/local/jdk1.2.2/jre/lib/i386:/usr/local/jdk1.2.2/jre/lib/i386/classic:/usr/local
/jdk1.2.2/jre/lib/i386/native_threads
java.library=/usr/local/jdk1.2.2/jre/lib/i386/libjava.so
java.extension=/usr/local/lib/php/extensions/libphp_java.so


Now, when I try to instantiate a JAVA class I get this error: Fatal
error: Cannot instantiate non-existent class: java in
/usr/local/apache/htdocs/index.php on line 3.

Does anybody have expirience with running JAVA with PHP? I don't know
why it doesn't work. I use PHP 4.05 on a Debian Linux machine. Thanks.

Robert

Reply via email to