Unable to run MinimServer on Mac Mini M1 w/ Azul JVM
|
09-04-2021, 03:38
Post: #1
|
|||
|
|||
Unable to run MinimServer on Mac Mini M1 w/ Azul JVM
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? |
|||
09-04-2021, 10:10
Post: #2
|
|||
|
|||
RE: Unable to run MinimServer on Mac Mini M1 w/ Azul JVM
Your diagnosis of the cause of the problem is correct. The MinimServer launcher for macOS is expecting to find an Intel JVM.
It should work if you remove the Azul JVM and install Java for macOS from this page. The M1 chip can run a JVM built for Intel using the Rosetta emulator. |
|||
10-04-2021, 14:59
Post: #3
|
|||
|
|||
RE: Unable to run MinimServer on Mac Mini M1 w/ Azul JVM
(09-04-2021 10:10)simoncn Wrote: Your diagnosis of the cause of the problem is correct. The MinimServer launcher for macOS is expecting to find an Intel JVM. Thank you for the precise response - it saves me a lot of time. I'll uninstall the Azul JVM and try the one you pointed me to. Two requests: (1) Please make an M1 or universal binary available sometime in 2021. I know these machines are fairly new and there are few out there in the wild. I'm pretty sure there are cloud instances you can get access to for development w/o buying one. Virtually the only reason my M1 Mac Mini exists is to run MinimServer. I am sure that JIT on top of JIT will work, but ... (2) If at all possible, somewhere in the release notes provide a command line to invoke the application jar file so we aren't forced to use the wrapper application. If that makes the license check not work, then just tell us and we'll know why. I certainly appreciate the complexity of multi-platform application deliver. |
|||
10-04-2021, 16:07
Post: #4
|
|||
|
|||
RE: Unable to run MinimServer on Mac Mini M1 w/ Azul JVM
And just in case anyone else finds this as relating to an M1 Mac ... the Oracle JVM version 8 from the page referenced in this thread allowed MinimServer to run just fine.
|
|||
10-04-2021, 20:39
Post: #5
|
|||
|
|||
RE: Unable to run MinimServer on Mac Mini M1 w/ Azul JVM
I am intending to add native M1 support at some point but at present there is no timescale for this.
You could try launching MinimServer from a Terminal window using the following commands: cd /Applications/MinimServer.app/Contents/Java java -jar mserver.jar This will not affect how licensing is handled. Doing this is untested and unsupported. |
|||
13-10-2021, 11:13
(This post was last modified: 13-10-2021 12:14 by Hantarish.)
Post: #6
|
|||
|
|||
RE: Unable to run MinimServer on Mac Mini M1 w/ Azul JVM
(10-04-2021 20:39)simoncn Wrote: I am intending to add native M1 support at some point but at present there is no timescale for this. Hello, I downloaded Minimserver in order to try it on a M1 Mac Mini. I installed Java 8 as well, but I encounter the same problem, and get the same "LibjliOpenError" message. Same error occurs when I launch Minimwatch. I ran the terminal commande, but it does not work. I have Azul installed on my M1 Mini, and I don't know how to remove it from the drive, in order to make Minimserver work with Java 8. |
|||
13-10-2021, 11:49
Post: #7
|
|||
|
|||
RE: Unable to run MinimServer on Mac Mini M1 w/ Azul JVM
You can find uninstall instructions on this page.
|
|||
14-12-2021, 15:38
Post: #8
|
|||
|
|||
RE: Unable to run MinimServer on Mac Mini M1 w/ Azul JVM
MinimServer 2.1 has now been released and supports M1 Macs in native mode with a suitable JDK installed (either the Azul JDK or Oracle JDK 17 macOS arm64). My testing was done with the Oracle JDK.
|
|||
19-02-2022, 16:54
Post: #9
|
|||
|
|||
RE: Unable to run MinimServer on Mac Mini M1 w/ Azul JVM
thanks for the tip here Simon to get this running. however, any suggestions for a permanent fix. right now, i have to run terminal to get minimserver started to launch Java with the commands below.
i'm new to the MAC OS, and am running a mac mini M1. thanks cd /Applications/MinimServer.app/Contents/Java java -jar mserver.jar |
|||
19-02-2022, 18:23
Post: #10
|
|||
|
|||
RE: Unable to run MinimServer on Mac Mini M1 w/ Azul JVM
To launch MinimServer, double-click the MinimServer icon in the Applications folder. The timing of the double click is important, not too fast and not too slow. If this doesn't work, you don't have Java installed correctly.
|
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)