DIPlib / diplib

Quantitative Image Analysis in C++, MATLAB and Python
https://diplib.org
Apache License 2.0
211 stars 48 forks source link

`viewslice` doesn't work on macOS/aarch64 #151

Open crisluengo opened 2 months ago

crisluengo commented 2 months ago

viewslice doesn't work for me any more, I get the following error message:

java.lang.NoClassDefFoundError: Could not initialize class com.sun.jna.NativeLibrary

I'm running MATLAB R2023b on a M1 Mac with macOS Sonoma. This version of MATLAB uses Amazon Coretto 8, installed separately according to the installation instructions for Apple Silicon machines.

JNA is available. I also updated to the latest release of Coretto 8, then told MATLAB to use Coretto 11, then recompiled Viewer.jar using Coretto 11 instead of the system-default JDK, none of those fixed it.

It might be some configuration issue, but I don't know where to even start looking for those. Googling for the error message leads to comments about executables in the temporary directory, but I couldn't figure out how to configure that for MATLAB.