Java library failed to load while trying to interface with MATLAB

Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
POST REPLY
User avatar
Karthick Ganesan
Posts: 119
Joined: Thu Oct 10, 2013 12:11 am

Java library failed to load while trying to interface with MATLAB

Post by Karthick Ganesan » Wed Jul 18, 2018 12:57 am

Dear All,
I tried to interface opensim with matlab. I followed the procedure given in the documentation page (manual as well as running the configureOpenSim script). While running sample code (simple optimizer example), It failed to load the java library. My opensim install directory\ bin is in the system path. Here is the screenshot of the error. Please give your suggestions to resolve this issue. Matlab version is R2015b.
error.png
error.png (7.97 KiB) Viewed 672 times
Thanks,
Karthick.

Tags:

User avatar
Thomas Uchida
Posts: 1795
Joined: Wed May 16, 2012 11:40 am

Re: Java library failed to load while trying to interface with MATLAB

Post by Thomas Uchida » Wed Jul 18, 2018 3:12 am

Does your system path refer to more than one installation of OpenSim? Please see topic 5963 (viewtopicPhpbb.php?f=91&t=5963).

User avatar
Karthick Ganesan
Posts: 119
Joined: Thu Oct 10, 2013 12:11 am

Re: Java library failed to load while trying to interface with MATLAB

Post by Karthick Ganesan » Wed Jul 18, 2018 4:27 am

Thanks for your reply. Yes. I had multiple versions in the system path and I removed the older versions from the path. Now I get the following error.
Error using simpleOptimizerExample (line 31)
Java exception occurred:
java.io.IOException: Object: ERR- Could not open file testData\Arm26_Optimize.osim. It may not exist or you don't have
permission to read it.

at org.opensim.modeling.opensimModelJNI.new_Model__SWIG_2(Native Method)

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

User avatar
Thomas Uchida
Posts: 1795
Joined: Wed May 16, 2012 11:40 am

Re: Java library failed to load while trying to interface with MATLAB

Post by Thomas Uchida » Wed Jul 18, 2018 5:09 am

java.io.IOException: Object: ERR- Could not open file testData\Arm26_Optimize.osim. It may not exist or you don't have permission to read it.
Please see topic 8648 (viewtopicPhpbb.php?f=91&t=8648). You can also search the Forum for the text in the error message.

User avatar
Karthick Ganesan
Posts: 119
Joined: Thu Oct 10, 2013 12:11 am

Re: Java library failed to load while trying to interface with MATLAB

Post by Karthick Ganesan » Thu Jul 19, 2018 3:40 am

Thanks. It helped to fix the error. Also thanks for the tip for searching the forum for error messages.

POST REPLY