Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installer don't work on MacOS #72

Open
uwealtmann opened this issue Jul 30, 2021 · 3 comments
Open

Installer don't work on MacOS #72

uwealtmann opened this issue Jul 30, 2021 · 3 comments
Labels

Comments

@uwealtmann
Copy link

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 :-)

@remast remast added bug mac_os Mac OS labels Aug 19, 2021
@stm-at-home
Copy link

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

@JimH44
Copy link

JimH44 commented Jan 3, 2022

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.

@hmijail
Copy link

hmijail commented Jun 24, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants