I'm trying to get libSBML installed on my Mac and I keep getting the
following when I try to run the program that uses it:
Error encountered while attempting to load libSBML:
java.lang.UnsatisfiedLinkError: no sbmlj in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1754)
at java.lang.Runtime.loadLibrary0(Runtime.java:823)
at java.lang.System.loadLibrary(System.java:1045)
at sbml.<clinit>(sbml.java:264)
Please check the value of your DYLD_LIBRARY_PATH environment variable and/or
your java.library.path system property (depending on which one you are
using) to make sure it lists all the directories needed to find the
libsbmlj.jnilib and/or libsbml.dylib library file and the libraries it
depends upon (e.g., the XML parser).
I've tried changing DYLD_LIBRARY_PATH to where it should be pointing as
per the instructions on the libSBML website ( http://sbml.org/Software/libSBML/docs/cpp-api/libsbml-accessing.html#accessing-java),
but this doesn't seem to help. I thought it might be because the files are
in a hidden folder (/usr/local/lib), but I tried copying them to some
folders on the desktop and changing DYLD_LIBRARY_PATH accordingly and I
still get the same error. Any ideas?
I'm very new to this, so my knowledge of troubleshooting this kind of thing
is essentially zero. Here's what I'm running:
MacBook Air
1.4GHz Core 2 Duo
4GB 1067MHz DDR3
OS X 10.6.7