note 29019 added to ref.java

From: Date: Thu, 30 Jan 2003 15:26:22 +0000
Subject: note 29019 added to ref.java
Groups: php.notes 
Request: Send a blank email to php-notes+get-43135@lists.php.net to get a copy of this message
My solution for Suse 7.3, Sun Java 1.4.0 with PHP 4.3.0 as Command Line Interface (CLI) and dynamic Apache module (DSO): 1. Make sure, that Php is compiled --with-apxs and --with-java. If you dont know that, phpinfo() or "php -i" helps. 2. Edit usr/local/lib/php.ini : [Java] java.class.path= /usr/local/lib/php/php_java.jar java.home= /usr/java/j2sdk1.4.0/jre extension_dir= /usr/local/lib/php/extensions/no-debug-non-zts-20020429 extension= java.so 3. Create Symlink: cd /usr/local/lib/php/extensions/no-debug-non-zts-20020429 ln -s java.so libphp_java.so 4. Edit /etc/init.d/apache : Find the line: LD_LIBRARY_PATH=some/path and modify it to: LD_LIBRARY_PATH=some/path:/usr/java/j2sdk1.4.0/jre/lib/i386:/usr/ java/j2sdk1.4.0/jre/lib/i386/server And now restart apache with "rcapache restart" Of course You have to adjust all pathnames to your needs! Thanks to aruntheking at hotmail dot com and turman at dont-spam-me dot com. 'Hope this is helpful for sombody else. -- http://www.php.net/manual/en/ref.java.php http://master.php.net/manage/user-notes.php?action=edit+29019 http://master.php.net/manage/user-notes.php?action=delete+29019 http://master.php.net/manage/user-notes.php?action=reject+29019

« previous php.notes (#43135) next »