scripting with matlab
Posted: Thu Jul 26, 2018 12:11 pm
Dear All,
I tried to interface opensim with matlab. I followed the procedure given in the documentation page( https://simtk-confluence.stanford.edu:8 ... ith+Matlab ) and running the configureOpenSim script.While running code for test that OpenSim is properly configured with MATLAB( org.opensim.modeling.opensimCommon.GetVersion() ) It failed to load the java library. My opensim install directory\ bin is in the system path. I received error mentioned below:
>> org.opensim.modeling.opensimCommon.GetVersion()
Failed to load one or more dynamic libraries for OpenSim.
java.lang.UnsatisfiedLinkError: C:\opensim 4.0\bin\osimJavaJNI.dll: Can't find dependent libraries
Make sure OpenSim's bin directory is on your PATH.
See https://simtk-confluence.stanford.edu/d ... ith+Matlab
Java exception occurred:
java.lang.UnsatisfiedLinkError: org.opensim.modeling.opensimCommonJNI.GetVersion()Ljava/lang/String;
at org.opensim.modeling.opensimCommonJNI.GetVersion(Native Method)
at org.opensim.modeling.opensimCommon.GetVersion(opensimCommon.java:25)
My opensim 4.0 is 64bit and my matlab is MATLAB R2016a 64bit. I don't have multiple versions in the system path .
Please give your suggestions to resolve this issue.
Tancks.
Vahid.
I tried to interface opensim with matlab. I followed the procedure given in the documentation page( https://simtk-confluence.stanford.edu:8 ... ith+Matlab ) and running the configureOpenSim script.While running code for test that OpenSim is properly configured with MATLAB( org.opensim.modeling.opensimCommon.GetVersion() ) It failed to load the java library. My opensim install directory\ bin is in the system path. I received error mentioned below:
>> org.opensim.modeling.opensimCommon.GetVersion()
Failed to load one or more dynamic libraries for OpenSim.
java.lang.UnsatisfiedLinkError: C:\opensim 4.0\bin\osimJavaJNI.dll: Can't find dependent libraries
Make sure OpenSim's bin directory is on your PATH.
See https://simtk-confluence.stanford.edu/d ... ith+Matlab
Java exception occurred:
java.lang.UnsatisfiedLinkError: org.opensim.modeling.opensimCommonJNI.GetVersion()Ljava/lang/String;
at org.opensim.modeling.opensimCommonJNI.GetVersion(Native Method)
at org.opensim.modeling.opensimCommon.GetVersion(opensimCommon.java:25)
My opensim 4.0 is 64bit and my matlab is MATLAB R2016a 64bit. I don't have multiple versions in the system path .
Please give your suggestions to resolve this issue.
Tancks.
Vahid.