Java exception occurred

Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
POST REPLY
User avatar
OPHELIE HERVE
Posts: 1
Joined: Tue Sep 29, 2020 11:33 am

Java exception occurred

Post by OPHELIE HERVE » Fri Jun 24, 2022 1:36 pm

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.

Tags:

User avatar
Ayman Habib
Posts: 2238
Joined: Fri Apr 01, 2005 12:24 pm

Re: Java exception occurred

Post by Ayman Habib » Tue Jun 28, 2022 8:11 am

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

POST REPLY