Page 1 of 1

problem about the Opensim-Matlab interfaces

Posted: Tue Feb 28, 2012 7:53 pm
by sjtuljw520
I downloand the MalabOpensimAPI.zip and want to test the interfaces.
Although I do as what the Readme.txt suggests, in the step 4(Close and restart Matlab)
when I restart the matlab,it pops a error: Cannot locate com/mathworks/jmi/OpaqueJavaInterface class.

the Opensim version is 2.4.0 , matlab is R2011b.

Does anyone know how to deal with it?

Thank you!

Jianwei Liu

Re: problem about the Opensim-Matlab interfaces

Posted: Thu Mar 15, 2012 1:36 pm
by aymanh
Hi Jianwei,

This may be due to an older installation of Matlab. Please check the Mathworks thread at
http://www.mathworks.com/support/soluti ... product=ML

for troubleshooting tips,

Good luck
-Ayman

Re: problem about the Opensim-Matlab interfaces

Posted: Tue Jan 26, 2016 10:26 am
by rdwedge
Hello,

I am getting this error message when trying to interface OpenSim 3.3 with Matlab:

Java exception occurred:
java.lang.NoClassDefFoundError: Could not initialize class org.opensim.modeling.opensimModelJNI

at org.opensim.modeling.Model.<init>(Model.java:119)

I ran the configureOpenSim script, imported the OpenSim libraries and tried the command model=org.opensim.modeling.Model(); as suggested. I removed OpenSim 3.2 from my path, and made sure the bin folder was a part of my current path with OpenSim 3.3

I have a 64-bit system but I am running 32-bit Matlab (student version), and have installed 32-bit 3.3.

Any help would be greatly appreciated.
Ryan