I compile "Test.java" from the java bindings directory, compiles fine. When I run however, I get the following error:
Exception in thread "main" java.lang.UnsatisfiedLinkError: /users/peter/libsbml-2.2.0/bindings/java/libsbmlj.so: libsbml.so: cannot open shared object file: No
such file or directory
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1586)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1511)
at java.lang.Runtime.loadLibrary0(Runtime.java:788)
at java.lang.System.loadLibrary(System.java:834)
at Test.<clinit>(Test.java:363)
Any help would be appreciated. Thanks in advance.
Problem solved - by Ben of course. Thanks Ben.
The solution was to put both the libsbmlj.so and libsbml.so into the LD_LIBRARY_PATH, such as: