Page 1 of 1

Java exception occurred

Posted: Fri Jun 24, 2022 1:36 pm
by ophelie
Hello,
I reinstalled OpenSim 4.3.
I am able to run "import org.opensim.modeling.* "
However, when I attempt to load a model, or try to run any other function I get the following error:

Java exception occurred:
java.lang.UnsatisfiedLinkError: org.opensim.modeling.opensimSimulationJNI.new_Model_SWIG_0()J
at org.opensim.modeling.opensimSimulationJNI.new_Model__SWIG_0(Native Method)

at org.opensim.modeling.Model.<init>(Model.java:804)

Does anyone know what is going on and can help me resolve this issue so that I can interface with OpenSim in MATLAB? Thanks.

Re: Java exception occurred

Posted: Tue Jun 28, 2022 8:11 am
by aymanh
Hello,

The import line doesn't exercise any functionality, just checks that the java/jar file with the correct name is available. The error downstream is very likely due to the fact that the libraries are not on your Path. Please consult the documentation page below for detailed instructions and let us know if you continue to have problems
https://simtk-confluence.stanford.edu/d ... ith+Matlab

Best regards,
-Ayman