I am trying to interface MatLab and OpenSim 3.3. I have tried the auto setup and the manual setup and double checked that my OPENSIM_INSTALL_DIRECTORY is in the system path environment variable, but am still getting this 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:779)
Have I done something incorrect in setting up the scripting environment or is this another issue?
Thanks
Interfacing MatLab with OpenSim 3.3
- Aaron Henry
- Posts: 32
- Joined: Tue Dec 03, 2019 8:47 am
- Ayman Habib
- Posts: 2248
- Joined: Fri Apr 01, 2005 12:24 pm
Re: Interfacing MatLab with OpenSim 3.3
Hi Aaron,
It's not clear if you have other installations of OpenSim on the same machine this includes OpenSim 4.0, (also opensim-moco and opensense if you used either since they both had an embedded distribution of OpenSim inside them). If so please make sure to remove any references to these versions from matlab configuration files.
Also make sure the installation you use of OpenSim 3.3 is the correct one for your Matlab version (x64 or x86). You can check which OpenSim installer was used by inspecting the file $OPENSIM_iNSTALL_DIR/sdk/buildinfo.txt
To make sure the Path is set correctly, you can type 'ik' at the command prompt and see if the ik executable is found on the path.
Hope this helps and please let us know what you find out.
Best regards,
-Ayman
It's not clear if you have other installations of OpenSim on the same machine this includes OpenSim 4.0, (also opensim-moco and opensense if you used either since they both had an embedded distribution of OpenSim inside them). If so please make sure to remove any references to these versions from matlab configuration files.
Also make sure the installation you use of OpenSim 3.3 is the correct one for your Matlab version (x64 or x86). You can check which OpenSim installer was used by inspecting the file $OPENSIM_iNSTALL_DIR/sdk/buildinfo.txt
To make sure the Path is set correctly, you can type 'ik' at the command prompt and see if the ik executable is found on the path.
Hope this helps and please let us know what you find out.
Best regards,
-Ayman
- Aaron Henry
- Posts: 32
- Joined: Tue Dec 03, 2019 8:47 am
Re: Interfacing MatLab with OpenSim 3.3
Thanks for the help Ayman. I think my issue was that I had OpenSim 4.0 interfaced with MatLab at the same time. I have removed 4.0 and am able to run scripts now.