Re: php with java support
| From: | Benjamin Heckmann | Date: | Wed, 18 Jul 2001 18:38:26 +0000 |
| Subject: | Re: php with java support | ||
| Groups: | php.install | ||
| Request: | Send a blank email to php-install+get-3603@lists.php.net to get a copy of this message | ||
> Hi Benjamin!
>
> My name is Gerardo and I\'m triying to configure my php wit java support,
> but I have some configuration errors, could you help me?
>
> When I want to open my php file, the browser display me this error:
>
> Fatal error: Unable to load Java Library libjava.so, error: undefined
> symbol: jdk_sem_post in /usr/local/www/htdocs/php/java/phpJava.php on
> line 2
Ok, I have never seen this error before, but as I tryed to work with php and
java it was with 4.0.4 and there was a bug in the java implementation, so
after
I had it running the bug stopped further development.
>
>
> On this moments I\'ve used the follows tools:
>
> 1) Red hat linux 7.0
> 2) php 4.0.5
> 3) Sun Microsystems JDK 1.3
>
> and my php.ini file loks like this:
>
> (please see the attach file)
I looked at the file and think you should correct it a little bit and try a
different version:
[Java]
>
java.class.path=/usr/local/lib/php_java.jar:/usr/local/jdk1.3/jre/lib/rt.jar
How many of them do you think php could handle? Try:
java.class.path=/usr/local/lib/php_java.jar
java.home=/usr/local/jdk1.3
>
java.library.path=/usr/local/lib/php:/usr/local/jdk1.3/jre/lib/i386/classic:
/usr/local/jdk1.3/jre/lib/i386:/usr/local/jdk1.3/jre/lib/i386/native_threads
:/usr/local/lib/php/extensions/no-debug-non-zts-20001222:/usr/local/lib/exte
nsions:/usr/local/jdk1.3/jre
IMO this should work, but is a bit offersized. In many of those directories
is no needed content. Try, if
all other changes worked:
java.library.path=/usr/local/lib/php/extensions/no-debug-non-zts-20001222:/u
sr/local/jdk1.2.2/jre/lib/i386:/usr/local/jdk1.2.2/jre/lib/i386/native_threa
ds:/usr/local/jdk1.2.2/jre/lib/i386/classic
java.library=libjava.so
> extension_dir=/usr/local/php-4.0.5/modules
I really don't think theres the file we are searching for? Try:
extension_dir=/usr/local/lib/php/extensions/no-debug-non-zts-20001222
extension=libphp_java.so
>
>
> Thanks a lot for your help
>
> Gerardo
>
Benjamin