Re: PHP with JAVA support

From: Date: Wed, 20 Jun 2001 22:16:12 +0000
Subject: Re: PHP with JAVA support
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-54627@lists.php.net to get a copy of this message
Robert, Please include the php code you're using to instantiate the class. That will give me a better idea of what to suggest. I'm using PHP 4.05 & Java 1.3.1 on Redhat 6.2 with good results. -Jim Kirkpatrick "Robert Vetter" <robert.vetter@ppo.de> wrote in message news:3B2F1B3A.D37F1676@ppo.de... > 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 >

« previous php.general (#54627) next »