baralga icon indicating copy to clipboard operation
baralga copied to clipboard

Installer don't work on MacOS

Open uwealtmann opened this issue 3 years ago • 3 comments

Using MacOS 10.15.7 and openjdk version "11.0.9" 2020-10-20 OpenJDK Runtime Environment AdoptOpenJDK (build 11.0.9+11) OpenJDK 64-Bit Server VM AdoptOpenJDK (build 11.0.9+11, mixed mode)

Try to start Baralga-1.9.7-Installer.jar (right-click: "Open"; OK to "To you realy want...") throws message: "Administrative privileges required. Please re-rung the installer with administrative privileges" But this is not possible using the graphic interface. Instead the installer should ask for an administator's password and then install.

Using Terminal: uwe@mac ~ % sudo java /Users/uwe/Downloads/Baralga-1.9.7-Installer.jar Fehler: Hauptklasse .Users.uwealtmann.Downloads.Baralga-1.9.7-Installer.jar konnte nicht gefunden oder geladen werden Ursache: java.lang.ClassNotFoundException: /Users/uwe/Downloads/Baralga-1/9/7-Installer/jar

Workaround: using the portable version :-)

uwealtmann avatar Jul 30 '21 09:07 uwealtmann

Hi, I would like to comment on this.

The reason for the failure of the installer as described before is the fact that the command to run the installer is wrong. Because you want to execute a jar file you need to use the "-jar" option with the java command to succeed.

So the right command would be:

uwe@mac ~ % sudo java -jar /Users/uwe/Downloads/Baralga-1.9.7-Installer.jar

Regards Stefan

stm-at-home avatar Dec 13 '21 22:12 stm-at-home

I found the same problem. I am a programmer and am used to using the Terminal app to do things, and am very pleased that macos is now based on Unix. With help from StackExchange I discovered that I needed the "-jar" argument to run the installer. Then it worked. Thanks, @stm-at-home , for pointing this out.

I am about to put in a suggestion that the Mac installer be upgraded to work from the GUI the way the Windows one does. Most Mac users wouldn't fare well if we expect them to run a Terminal command to install an app.

JimH44 avatar Jan 03 '22 21:01 JimH44

Why does the installer need sudo? Sounds to me like an accident waiting to happen. Fortunately the "portable" version can be used instead.

hmijail avatar Jun 24 '22 04:06 hmijail