I have the following Python program (jtest0.py).
 
----
from java.lang import System
print 'j.l.p =', System.getProperty('java.library.path')
 
System.loadLibrary('nsJni')
----
 
When run using Jython 2.2.1, loadLibrary() successfully does what I expect it to do (ignoring wrapping).
 
/usr/tandem/nssjava/jdk150_h50/jre/bin/java -Duser.home=/home/pxmayne -Dpython.home=/usr/local/jython2.2.1 -Djava.library.path=/usr/tandem/jdbcMx/current/lib:/home/pxmayne -classpath /usr/local/jython2.2.1/jython.jar:/usr/tandem/jdbcMx/current/lib/jdbcMx.jar:nsutils.jar org.python.util.jython ./jtest0.py
 
j.l.p = /usr/tandem/jdbcMx/current/lib:/home/pxmayne
 
However, when run using Jython 2.5b0 (ignoring wrapping):
 
/usr/tandem/nssjava/jdk150_h50/jre/bin/java -Djava.library.path=/usr/tandem/jdbcMx/current/lib:/home/pxmayne -Duser.home=/home/pxmayne -Xss1024k  -Xbootclasspath/a:/home/pxmayne/jython25/jython-complete.jar -classpath /usr/tandem/jdbcMx/current/lib:/home/pxmayne/nsutils.jar -Dpython.home=/home/pxmayne/jython25 -Dpython.executable=jython25/jython org.python.util.jython ./jtest0.py
 
j.l.p = /usr/tandem/jdbcMx/current/lib:/home/pxmayne
Traceback (most recent call last):
  File "./jtest0.py", line 4, in <module>
    System.loadLibrary('nsJni')
        at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1682)
        at java.lang.Runtime.loadLibrary0(Runtime.java:822)
        at java.lang.System.loadLibrary(System.java:992)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
 
java.lang.UnsatisfiedLinkError: java.lang.UnsatisfiedLinkError: no nsJni in java.library.path
 
Why is 2.5b0 not picking up my .so?
 
Java version:
java version "1.5.0_02"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_02-b09)
Java HotSpot(TM) Server VM (build 1.5.0_02 11.03.06-19:02 IA64, mixed mode)
 
Thanks.
 
PJDM