Unsatisfied link error only when creating new parameters
04 Sep '09 09:30
Hi guys,
I am using libSBML 4.0.0 under Linux. I've set my LD_LIBRARY_PATH variable and loaded the libsbml library with
static {
try {
System.loadLibrary("sbmlj");
// Extra check to be sure we have access to libSBML:
Class.forName("org.sbml.libsbml.libsbml");
} catch (Exception e) {
System.err.println("Error: could not load the libSBML library");
System.exit(1);
}
}
as described in the tutorial. I can read and manipulate models. However, when I try to do the following:
Parameter p = new Parameter(2, 4);
I receive the following
Exception in thread "AWT-EventQueue-0" java.lang.UnsatisfiedLinkError: org.sbml.libsbml.libsbmlJNI.new_Parameter__SWIG_7(JJ)J
at org.sbml.libsbml.libsbmlJNI.new_Parameter__SWIG_7(Native Method)
at org.sbml.libsbml.Parameter.<init>(Parameter.java:410)
...