PHP & Java (another one!)

From: Date: Thu, 28 Jun 2001 08:01:34 +0000
Subject: PHP & Java (another one!)
Groups: php.install 
Request: Send a blank email to php-install+get-3367@lists.php.net to get a copy of this message
Hi, after one day spent on web and newsgroup searching, I decided to ask here for an help: when I open a php page with something like: $system = new Java("java.lang.System"); I get the following error: Fatal error: Cannot instantiate non-existent class: java in /home/httpd/htdocs/MyFile.php on line ... PHP and Apache are working, when I do phpinfo() I get all the info but "Additional Modules" is blank (should I see Java section there?) I've 1) installed j2sdk1.3.0 on my linux system 2) built and installed php4.0.4pl1 --with-java option 3) bulit and installed apache 1.3.19 4) I've modified php.ini: [Java] java.home = /usr/local/j2sdk1.3.0 java.class.path = /usr/local/lib/php_java.jar java.library.path=/usr/local/lib:/usr/local/jdk1.3.0/jre/lib/i386/native_thr eads:/usr/local/j2sdk1.3.0/jre/lib/i386/classic:/usr/local/j2sdk1.3.0/jre/li b/i386 extension_dir=/home/public/php-4.0.4pl1/modules extension=libphp_java.so 5) Modified some env variables PATH=/usr/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/j2sdk1.3.0/bin:/usr/lo cal/j2sdk1.3.0/bin:/home/chris/bin LD_LIBRARY_PATH=/usr/local/j2sdk1.3.0/jre/lib/i386/native_threads:/usr/local /j2sdk1.3.0/jre/lib/i386/classic:/usr/local/j2sdk1.3.0/jre/lib/i386:/usr/lib /apache Thanks a lot for any help! Chris.

« previous php.install (#3367) next »