Configuration MATLAB/OpenSim - Error Java
Posted: Thu Feb 29, 2024 4:09 am
Hello there,
I tried to configure OpenSim with MATLAB, thus I carefully followed the instructions here: https://simtk-confluence.stanford.edu:8 ... ith+Matlab
On my script, I coded the following lines at the beginning:
import org.opensim.modeling.*
opensimLibPath = 'C:\Users\Manon JAMET\Desktop\OpenSim 4.4\sdk\';
javaaddpath(opensimLibPath);
I obtain the following error:
Error using PlotOpenSimwithMATLAB (line 20)
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)
The strange thing is that sometimes, my script seems to work, I don't have this error each time (but maybe 90% of the time).
Please, have you a solution?
I have MATLAB 64bits and OpenSim 4.4.
Thank you in advance!
I tried to configure OpenSim with MATLAB, thus I carefully followed the instructions here: https://simtk-confluence.stanford.edu:8 ... ith+Matlab
On my script, I coded the following lines at the beginning:
import org.opensim.modeling.*
opensimLibPath = 'C:\Users\Manon JAMET\Desktop\OpenSim 4.4\sdk\';
javaaddpath(opensimLibPath);
I obtain the following error:
Error using PlotOpenSimwithMATLAB (line 20)
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)
The strange thing is that sometimes, my script seems to work, I don't have this error each time (but maybe 90% of the time).
Please, have you a solution?
I have MATLAB 64bits and OpenSim 4.4.
Thank you in advance!