opensim-org / opensim-core

SimTK OpenSim C++ libraries and command-line applications, and Java/Python wrapping.
https://opensim.stanford.edu
Apache License 2.0
759 stars 308 forks source link

Matlab scripting - Java Exception Error on Mac (m3) #3721

Closed GianCarp closed 4 months ago

GianCarp commented 4 months ago

Hi,

I get the following error when following the steps on here for setting up scripting in matlab.

org.opensim.modeling.opensimCommon.GetVersion() Java exception occurred: java.lang.NoClassDefFoundError: Could not initialize class org.opensim.modeling.opensimCommonJNI at org.opensim.modeling.opensimCommon.GetVersion(opensimCommon.java:25)

Running mac m3 chip. Any advice appreciated.

Cheers

aymanhab commented 4 months ago

Please use the Intel Mac distribution of matlab rather than native apple Silicon as this is the architecture published in the official opensim distribution.

GianCarp commented 4 months ago

Please use the Intel Mac distribution of matlab rather than native apple Silicon as this is the architecture published in the official opensim distribution.

Thanks, working now!