#19327 [Com]: java.lang.UnsatisfiedLinkError: no php_java in java.library.path

From: Date: Wed, 05 Mar 2003 07:37:08 +0000
Subject: #19327 [Com]: java.lang.UnsatisfiedLinkError: no php_java in java.library.path
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-34847@lists.php.net to get a copy of this message
 ID:               19327
 Comment by:       robustwu at sina dot com
 Reported By:      chregu@php.net
 Status:           Open
 Bug Type:         Java related
 Operating System: linux debian
 PHP Version:      4CVS-2002-09-10
 New Comment:

I have searched many documents on phpbuilder ,but can not worked. your
information of the linux order "ln" saved me .I am so thankful to you
.:) and If somebody have the same problem ,you can contact me by mail
robustwu@sina.com


Previous Comments:
------------------------------------------------------------------------

[2002-10-31 12:02:54] chregu@php.net

yep, the java-extension works on my system, but only when i make this
symlink.

chregu

------------------------------------------------------------------------

[2002-10-31 11:52:43] iliaa@php.net

Did you setup the ini settings that tell the java.so where to look for
javalibs & classes?

------------------------------------------------------------------------

[2002-09-10 03:20:57] chregu@php.net

I looked a little bit at the code

php_java.jar tries to load the external library 
libphp_java.so in reflect.java with:
 System.loadLibrary(bundle.getString("library"));

library is defined in Makefile.frag ) as
    @echo library=php_java > $(srcdir)/net/php/reflect.properties

but we can't change php_java to just java, because then we get
conflicts with the main libjava.so. furthermore System.loadLibrary
prepends "lib" before the library name, and searches for this name
(libphp_java.so in this example).
I didn't find a solution to tell java to look for just php_java.so ...

Does anyone know a solution to this problem?

chregu




------------------------------------------------------------------------

[2002-09-10 02:37:17] chregu@php.net

A simple java test-script gives me the following error:

java.lang.UnsatisfiedLinkError: no php_java in java.library.path 

when i make a symbolic link from

$extensiondir$/java.so to $extensiondir$/libphp_java.so

it works.

Didn't find a quick solution for solving that problem.

chregu



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=19327&edit=1



Thread (10 messages)

« previous php.bugs (#34847) next »