Page 1 of 1

Connecting OpenSim4.5 and Matlab

Posted: Sun Nov 17, 2024 3:19 pm
by yiming
Hello,

I am trying to connect OpenSim 4.5 and Matlab (R2024b-Intel version) on my Mac book. Below is the issue I encountered:
Java exception occurred:
java.lang.NoClassDefFoundError: Could not initialize class org.opensim.modeling.opensimCommonJNI
at org.opensim.modeling.opensimCommon.GetVersion(opensimCommon.java:25)

I have tried both automatic (configureOpenSim script) and manual ways, but neither worked. I have also added the OpenSim bin path to system path (I don't know if this is relevant to MacOS but I did it anyways).

The configuration script worked fine with my windows laptop.

I really appreciate any suggestions provided.

Many thanks,
Yiming

Re: Connecting OpenSim4.5 and Matlab

Posted: Tue Nov 26, 2024 11:20 am
by nbianco
Hi Yiming,

What type of processor does your Macbook have? Is it an Intel-based processor (x86_64) or an M1/M2/M3 (Arm64) processor?

Have you tried installing OpenSim on an older version of Matlab?

Best,
Nick

Re: Connecting OpenSim4.5 and Matlab

Posted: Tue Nov 26, 2024 11:32 am
by nbianco
Note that there may currently be a bug related to installing OpenSim with Matlab 2024b: https://github.com/opensim-org/opensim-core/issues/3958.

Re: Connecting OpenSim4.5 and Matlab

Posted: Wed Nov 27, 2024 4:43 pm
by rodmateus
I'm curious. Were you able to solve this issue?