Can't configure opensim in matlab
Posted: Wed Jul 01, 2020 6:54 am
I have been following instructions described at https://simtk-confluence.stanford.edu/d ... vironment . I have added C\OpenSim\4.1 to my environment path, and run the configureOpenSim.m file as instructed, then restart matlab. However, when I return to my script and enter 'model = org.opensim.modeling.Model();', it comes up with the following message:
>> model = org.opensim.modeling.Model();
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)
When I try running org.opensim.modeling.opensimCommon.GetVersion(), this is the message I get:
>> org.opensim.modeling.opensimCommon.GetVersion()
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)
I have OpenSim\4.1\bin added to my path, and I had a look at the application in question and the dll application is there, so I don't know why this isn't working? I have also been running it as admin user. Any help would be much appreciated, as I would like to continue and create my own model using OpenSim if possible.
Thanks in advance!
>> model = org.opensim.modeling.Model();
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)
When I try running org.opensim.modeling.opensimCommon.GetVersion(), this is the message I get:
>> org.opensim.modeling.opensimCommon.GetVersion()
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)
I have OpenSim\4.1\bin added to my path, and I had a look at the application in question and the dll application is there, so I don't know why this isn't working? I have also been running it as admin user. Any help would be much appreciated, as I would like to continue and create my own model using OpenSim if possible.
Thanks in advance!