3.3 MATLAB API Scripting
Posted: Mon Sep 14, 2015 8:50 pm
Hi OpenSim Team,
I am having problems configuring the MATLAB API Scripting Environment for version 3.3 of OpenSim. I have used MATLAB for scripting successfully in version 3.2. However, I was hoping to upgrade to version 3.3 to have access to the new features.
I am running Windows 7 with 64-bit MATLAB and OpenSim (both 3.2 and 3.3). I ran the automated MATLAB configuration successfully. As a check, I have even gone through all of the steps in the manual setup to ensure that all of the files were updated appropriately. I am even able to import the libraries with the import org.opensim.modeling.*; command without error. However, I get a java error when I follow up that line with myModel = Model(); or just use myModel = org.opensim.modeling.Model(); directly. The GUI for both 3.2 and 3.3 has worked fine for me so far, although I have not used the 3.3 GUI for much more than visualizing and running tutorial 3. Additionally, I uninstalled my 32-bit version of Java and installed the most recent 64-bit version. Following that step, I tried updating the .conf file jdkhome variable based on something I saw from a previous forum post. As 3.3 has been unsuccessful, I reran the 3.2 MATLAB setup file. The 3.2 API still works fine. The errors that I see are below. Thank you for your help.
"Required library failed to load. Check that the dynamic library osimJavaJNI is in your PATH
java.lang.UnsatisfiedLinkError: C:\OpenSim 3.0\bin\osimJavaJNI.dll: The specified procedure could not be found."
When that error message window is closed, the following is displayed in the MATLAB command window.
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:8014)
at org.opensim.modeling.Model.<init>(Model.java:118)
Nathan Brantly
I am having problems configuring the MATLAB API Scripting Environment for version 3.3 of OpenSim. I have used MATLAB for scripting successfully in version 3.2. However, I was hoping to upgrade to version 3.3 to have access to the new features.
I am running Windows 7 with 64-bit MATLAB and OpenSim (both 3.2 and 3.3). I ran the automated MATLAB configuration successfully. As a check, I have even gone through all of the steps in the manual setup to ensure that all of the files were updated appropriately. I am even able to import the libraries with the import org.opensim.modeling.*; command without error. However, I get a java error when I follow up that line with myModel = Model(); or just use myModel = org.opensim.modeling.Model(); directly. The GUI for both 3.2 and 3.3 has worked fine for me so far, although I have not used the 3.3 GUI for much more than visualizing and running tutorial 3. Additionally, I uninstalled my 32-bit version of Java and installed the most recent 64-bit version. Following that step, I tried updating the .conf file jdkhome variable based on something I saw from a previous forum post. As 3.3 has been unsuccessful, I reran the 3.2 MATLAB setup file. The 3.2 API still works fine. The errors that I see are below. Thank you for your help.
"Required library failed to load. Check that the dynamic library osimJavaJNI is in your PATH
java.lang.UnsatisfiedLinkError: C:\OpenSim 3.0\bin\osimJavaJNI.dll: The specified procedure could not be found."
When that error message window is closed, the following is displayed in the MATLAB command window.
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:8014)
at org.opensim.modeling.Model.<init>(Model.java:118)
Nathan Brantly