No "osimJavaJNI" file on Mac OSX 14.5 / OpenSim 4.5

Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
POST REPLY
User avatar
Daniel Santana
Posts: 2
Joined: Wed Apr 20, 2022 6:34 am

No "osimJavaJNI" file on Mac OSX 14.5 / OpenSim 4.5

Post by Daniel Santana » Fri Jul 19, 2024 10:13 am

Attempting to use Matlab 2024a with OpenSim 4.5 on Mac OSX 14.5. I have followed the instructions "Scripting with Matlab", attempted manual setup, and have noted the issue for windows "Errors related to osimJavaJNI not being on the path.....". Nonetheless, receive the error:

"Failed to load one or more dynamic libraries for OpenSim.
java.lang.UnsatisfiedLinkError: no osimJavaJNI in java.library.path:
... "

Despite adding the /bin and /sdk folders to the system path, this does not solve the issue. I cannot find the "osimJavaJNI" file in any of these folders. Where can I find this file to solve this issue? Thank you for the help

Tags:

User avatar
Ayman Habib
Posts: 2244
Joined: Fri Apr 01, 2005 12:24 pm

Re: No "osimJavaJNI" file on Mac OSX 14.5 / OpenSim 4.5

Post by Ayman Habib » Fri Jul 19, 2024 11:16 am

Hi Daniel,

The tricky part about Mac OSX platform is that there are two different architectures (intel based x86_64 and arm64 for M1/M2). We have not published M1 based distribution as of now, so you'll need to use the x86_64 (and Rosetta) of Matlab in order to use OpenSim in Matlab up to and including version 4.5.

The message about errors loading the library are generic and maybe misleading implying that the library is not found but it could be other problems with it.

Hope this helps,
-Ayman

User avatar
Daniel Santana
Posts: 2
Joined: Wed Apr 20, 2022 6:34 am

Re: No "osimJavaJNI" file on Mac OSX 14.5 / OpenSim 4.5

Post by Daniel Santana » Fri Jul 19, 2024 12:36 pm

Switching to the Intel based version of Matlab solved the issue, thanks very much

POST REPLY