|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #19327 java.lang.UnsatisfiedLinkError: no php_java in java.library.path
Submitted: 2002-09-10 02:37 UTC Modified: 2003-08-08 06:17 UTC
Avg. Score:4.1 ± 0.9
Reproduced:16 of 16 (100.0%)
Same Version:2 (12.5%)
Same OS:4 (25.0%)
From: Assigned:
Status: No Feedback Package: Java related
PHP Version: 4CVS-2002-09-10 OS: linux debian
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
New email:
PHP Version: OS:


 [2002-09-10 02:37 UTC]
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$/ to $extensiondir$/

it works.

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



Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2002-09-10 03:20 UTC]
I looked a little bit at the code

php_java.jar tries to load the external library in with:

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

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

Does anyone know a solution to this problem?


 [2002-10-31 11:52 UTC]
Did you setup the ini settings that tell the where to look for javalibs & classes?
 [2002-10-31 12:02 UTC]
yep, the java-extension works on my system, but only when i make this symlink.

 [2003-08-08 06:17 UTC]
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.

 [2004-05-26 19:16 UTC] aamir at signalcommunications dot com dot au
i did exprience similar problem , going by what was said here  I understood what the problem was to fix it  , i copyed php_java.dll to 
"c:\jdk\jre\bin" folder and  it was fixed , 
i am running php under winXP , IIS 5 

 [2006-06-08 22:04 UTC] test at aol dot com
That almost worked for me but apache 2.0.54 on windows xp was crashing. (php 4.4)


make sure these lines are in your php.ini.  The most important one is having java.library.path set to your extensions directory

java.class.path = "C:\PHP4\extensions\php_java.jar"
java.home = "C:\Program Files\Java\jre1.5.0_06"
java.library = "C:\Program Files\Java\jre1.5.0_06\bin\client\jvm.dll" 
java.library.path = "C:\PHP4\extensions\"
 [2007-12-10 21:45 UTC] gio_y at hotmail dot com
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Sat Jul 02 09:05:45 2022 UTC