Forums

F.A.Q. F.A.Q.    Register Register    Login Login    Home Home
Search Search
SBML Discussions » sbml-interoperability » libsbml - Test.java example Problems
Show: Today's Posts  :: Message Navigator
| Subscribe to topic 
Return to the default flat view Create a new topic Submit Reply
AuthorTopic
Peter Tang


Posts: 6
Location:
Edmonton
Registered:
February 2005
Re: libsbml - Test.java example Problems 23 Feb '05 09:24 Go to previous message

Peter Tang wrote on Tue, 15 February 2005 09:43

Hello all, got a little problem with the Test.java example.

I installed libsbml with the following steps:
./configure --with-expat --with-java (successful)
make (successful)
make install (successful)

Then I went and eddited my CLASSPATH and LD_LIBRARY_PATH as the following:

CLASSPATH=.:/users/peter/libsbml-2.2.0/bindings/java/libsbmlj.jar
export CLASSPATH
LD_LIBRARY_PATH=/users/peter/libsbml-2.2.0/bindings/java/
export LD_LIBRARY_PATH

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:

LD_LIBRARY_PATH=/users/peter/libsbml-2.2.0/bindings/java/:/usr/local/lib/
export LD_LIBRARY_PATH

Where the first path is the installed libsbml directory and the second is the path for the libsbml.so file, set by /configure.

      

SubjectPosterDate
Read Message   libsbml - Test.java example Problems Peter Tang15 Feb '05 09:43
Read Message   Re: libsbml - Test.java example Problems Peter Tang22 Feb '05 14:16
Read Message   Re: libsbml - Test.java example Problems  Peter Tang23 Feb '05 09:24
Previous Topic:Running problem with libSBML Java binding
Next Topic:bugfix release for layout implementation
Go to forum:
-=] Back to Top [=-

Powered by FUDforum. (Copyright Advanced Internet Designs Inc.)

Please use our issue tracking system for any questions or suggestions about this website.