note 40333 deleted from ref.java by sobak
| From: | sobak@php.net | Date: | Sun, 04 Dec 2016 07:06:58 +0000 |
| Subject: | note 40333 deleted from ref.java by sobak | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-207978@lists.php.net to get a copy of this message | ||
Note Submitter: norman at junkonline dot com
----
This works fine on MacOS X (Panther). The one trick is, you need to symlink "java.so" in
your php extensions directory to "libphp_java.jnilib".
Here's the relevant section from my php.ini file for anyone who needs it:
[Java]
java.class.path = "/usr/local/lib/java/php_java.jar"
java.home = "/System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home"
java.library.path = "/usr/local/lib/php/extensions/no-debug-non-zts-20020429"
extension=java.so
You may have decided to put php_java.jar somewhere other than where I did.
For some reason, setting java.library in the ini file causes this to fail, so I left it out and
things worked flawlessly without it. YMMV.