09-04-2021, 03:38
I have a very old Mac Mini that I have been running MinimServer on that I am replacing with a new M1 model. In the process of setting it up I installed MinimServer and tried to launch it. I got a dialog about needed to install a version of Java greater than 8.
Since this box is pristine I looked around and it looked like the only native M1 JVM was from Azul so I downloaded that and installed it. I have validated that I can use that javac compiler and java command to run a simple command. However, when I try to double click MinimServer.app I got an error dialog saying:
LibjliOpenError
If I look in my $HOME/Library/MinimServer directory, minim-server.log has this in it:
cat ~/Library/MinimServer/minimserver-out.log
2021-04-08 21:13:51.632 MinimJavaLauncher[14784:1799906] libjliFile: /Library/Java/JavaVirtualMachines/zulu-8.jdk/Contents/Home/jre/lib/jli/libjli.dylib
2021-04-08 21:13:51.632 MinimJavaLauncher[14784:1799906] libjliOpenError: dlopen(/Library/Java/JavaVirtualMachines/zulu-8.jdk/Contents/Home/jre/lib/jli/libjli.dylib, 1): no suitable image found. Did find:
/Library/Java/JavaVirtualMachines/zulu-8.jdk/Contents/Home/jre/lib/jli/libjli.dylib: mach-o, but wrong architecture
/Library/Java/JavaVirtualMachines/zulu-8.jdk/Contents/Home/jre/lib/jli/libjli.dylib: stat() failed with errno=9
That kind of makes me wonder whether when the MinimServer launcher that is starting it is declaring the architecture of the lib ... or that because an x86 binary is trying to load the JVM it won't let it because the target architecture doesn't match.
Any ideas here? Is there a way to just launch the MinimServer app from the command line as a pure Java thing?
Since this box is pristine I looked around and it looked like the only native M1 JVM was from Azul so I downloaded that and installed it. I have validated that I can use that javac compiler and java command to run a simple command. However, when I try to double click MinimServer.app I got an error dialog saying:
LibjliOpenError
If I look in my $HOME/Library/MinimServer directory, minim-server.log has this in it:
cat ~/Library/MinimServer/minimserver-out.log
2021-04-08 21:13:51.632 MinimJavaLauncher[14784:1799906] libjliFile: /Library/Java/JavaVirtualMachines/zulu-8.jdk/Contents/Home/jre/lib/jli/libjli.dylib
2021-04-08 21:13:51.632 MinimJavaLauncher[14784:1799906] libjliOpenError: dlopen(/Library/Java/JavaVirtualMachines/zulu-8.jdk/Contents/Home/jre/lib/jli/libjli.dylib, 1): no suitable image found. Did find:
/Library/Java/JavaVirtualMachines/zulu-8.jdk/Contents/Home/jre/lib/jli/libjli.dylib: mach-o, but wrong architecture
/Library/Java/JavaVirtualMachines/zulu-8.jdk/Contents/Home/jre/lib/jli/libjli.dylib: stat() failed with errno=9
That kind of makes me wonder whether when the MinimServer launcher that is starting it is declaring the architecture of the lib ... or that because an x86 binary is trying to load the JVM it won't let it because the target architecture doesn't match.
Any ideas here? Is there a way to just launch the MinimServer app from the command line as a pure Java thing?