OpenSim 4.5 and matlab
Posted: Fri Sep 13, 2024 12:49 pm
I recently received a new mac pro M3. I reinstalled OpenSim on the new cpu and I am now unable to run any OpenSim files in MATLAB. The error i receive is below. I have already been through the simtk scripting with matlab tutorial and trouble shooting.
I have tried adding OpenSim to PATH: In the shell configuration file. NO luck
can you please point me in the right direction?
>> import org.opensim.modeling.*
model = Model();
disp(model)
Failed to load one or more dynamic libraries for OpenSim.
java.lang.UnsatisfiedLinkError: no osimJavaJNI in java.library.path: [/Applications/MATLAB_R2024a.app/bin/maca64, /Applications/MATLAB_R2024a.app/sys/jxbrowser/maca64/lib, /Applications/OpenSim 4.5/opensim-moco-0.4.0/sdk/lib]
Java exception occurred:
java.lang.UnsatisfiedLinkError: 'long
org.opensim.modeling.opensimSimulationJNI.new_Model__SWIG_0()'
at org.opensim.modeling.opensimSimulationJNI.new_Model__SWIG_0(Native Method)
at org.opensim.modeling.Model.<init>(Model.java:779)
I have tried adding OpenSim to PATH: In the shell configuration file. NO luck
can you please point me in the right direction?
>> import org.opensim.modeling.*
model = Model();
disp(model)
Failed to load one or more dynamic libraries for OpenSim.
java.lang.UnsatisfiedLinkError: no osimJavaJNI in java.library.path: [/Applications/MATLAB_R2024a.app/bin/maca64, /Applications/MATLAB_R2024a.app/sys/jxbrowser/maca64/lib, /Applications/OpenSim 4.5/opensim-moco-0.4.0/sdk/lib]
Java exception occurred:
java.lang.UnsatisfiedLinkError: 'long
org.opensim.modeling.opensimSimulationJNI.new_Model__SWIG_0()'
at org.opensim.modeling.opensimSimulationJNI.new_Model__SWIG_0(Native Method)
at org.opensim.modeling.Model.<init>(Model.java:779)