Error setting up matlab API
Posted: Thu Oct 08, 2015 10:26 pm
Dear Opensim Team,
I have been trying to set up the scripting environment in Matlab with the OpenSim 3.3 (64 bits) and Matlab 2015 (64 bits). I managed to run the automated script after a few errors that were coming up. Once the script has run it says that all the paths have been set properly. I also tried setting it up manually as indicated online. I tested it with typing import org.opensim.modeling.* and no error came up. However, when I test it with Model=org.opensim.modeling.Model(), the following error come up:
Java exception occurred:
java.lang.UnsatisfiedLinkError: org.opensim.modeling.opensimModelJNI.swig_module_init()V
at org.opensim.modeling.opensimModelJNI.swig_module_init(Native Method)
at org.opensim.modeling.opensimModelJNI.<clinit>(opensimModelJNI.java:10698)
at org.opensim.modeling.Model.<init>(Model.java:119)
or
Model=org.opensim.modeling.Model()
Java exception occurred:
java.lang.NoClassDefFoundError: Could not initialize class org.opensim.modeling.opensimModelJNI
at org.opensim.modeling.Model.<init>(Model.java:119)
I looked at the different posts on the forum dealing with these issues and tried the different suggested solutions by changing the authorization for Matlab to run as an administrator but it did not solve the problem. I am unsure of what to do at this point to get it to work? Your help is much appreciated.
Thank you,
Erica Beaucage-Gauvreau
I have been trying to set up the scripting environment in Matlab with the OpenSim 3.3 (64 bits) and Matlab 2015 (64 bits). I managed to run the automated script after a few errors that were coming up. Once the script has run it says that all the paths have been set properly. I also tried setting it up manually as indicated online. I tested it with typing import org.opensim.modeling.* and no error came up. However, when I test it with Model=org.opensim.modeling.Model(), the following error come up:
Java exception occurred:
java.lang.UnsatisfiedLinkError: org.opensim.modeling.opensimModelJNI.swig_module_init()V
at org.opensim.modeling.opensimModelJNI.swig_module_init(Native Method)
at org.opensim.modeling.opensimModelJNI.<clinit>(opensimModelJNI.java:10698)
at org.opensim.modeling.Model.<init>(Model.java:119)
or
Model=org.opensim.modeling.Model()
Java exception occurred:
java.lang.NoClassDefFoundError: Could not initialize class org.opensim.modeling.opensimModelJNI
at org.opensim.modeling.Model.<init>(Model.java:119)
I looked at the different posts on the forum dealing with these issues and tried the different suggested solutions by changing the authorization for Matlab to run as an administrator but it did not solve the problem. I am unsure of what to do at this point to get it to work? Your help is much appreciated.
Thank you,
Erica Beaucage-Gauvreau