Error "initialize class" on Matlab

Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
POST REPLY
User avatar
Thomas Lagoute
Posts: 1
Joined: Fri May 20, 2022 12:39 am

Error "initialize class" on Matlab

Post by Thomas Lagoute » Thu Jun 02, 2022 8:49 am

Hello,

I am working with IMU and EMG and I try to convert .c3d files in suitable files for OpenSim by using Matlab r2022a.

When I run "configureOpenSim", it shows that the installation succeed. Yet, when I test
org.opensim.modeling.opensimCommon.GetVersion() , I get the following error message :

Failed to load one or more dynamic libraries for OpenSim.
java.lang.UnsatisfiedLinkError: C:\OpenSim 4.3\bin\osimJavaJNI.dll: Can't find dependent libraries
Make sure OpenSim's bin directory is on your PATH.
See https://simtk-confluence.stanford.edu/d ... ith+Matlab
Java exception occurred:
java.lang.UnsatisfiedLinkError: org.opensim.modeling.opensimCommonJNI.swig_module_init()V

at org.opensim.modeling.opensimCommonJNI.swig_module_init(Native Method)

at org.opensim.modeling.opensimCommonJNI.<clinit>(opensimCommonJNI.java:3149)

at org.opensim.modeling.opensimCommon.GetVersion(opensimCommon.java:25)


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

at org.opensim.modeling.opensimCommon.GetVersion(opensimCommon.java:25)


I post my question here as I did not manage to find any further information elsewhere. I checked the path; the "bin" and "Utilities" folders are already in. I uninstalled Matlab 2021 which had the same error.

Thanks for your time and consideration.
Thomas

Tags:

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

Re: Error "initialize class" on Matlab

Post by Thomas Uchida » Fri Jun 03, 2022 5:46 am

If you had OpenSim 3.3 installed, you may need to remove the OPENSIM_HOME environment variable. You could also check the Matlab path. A similar issue was reported and resolved in Topic 9993: viewtopicPhpbb.php?f=91&t=9993

POST REPLY