I try to open the application for the first time but I get the command “Unable to load java runtime environment”.
Please install Java Runtime. You can download Java from https://java.com
I’m experiencing this problem with GanttProject 2.8.9 after I updated my MacOS to Mojave.
I have java installed in my machine, and it was working just fine before the system update.
java version “10.0.1” 2018-04-17
Java™ SE Runtime Environment 18.3 (build 10.0.1+10)
Java HotSpot™ 64-Bit Server VM 18.3 (build 10.0.1+10, mixed mode)
How did you install Java 10 on macOS and how do you get this information about Java environment on your Mac?
Java got updated automatically.
I checked the version by typing “java -version” in the terminal
What these commands:
I have the same issue. Gantt project used to work fine, now I get the “Unable to load Java Runtime Environment”.
My setup is:
macOS Mojave 10.14.1 (18B75)
java 10.0.2 2018-07-17 Java(TM) SE Runtime Environment 18.3 (build 10.0.2+13) Java HotSpot(TM) 64-Bit Server VM 18.3 (build 10.0.2+13, mixed mode)
Matching Java Virtual Machines (1): 10.0.2, x86_64: "Java SE 10.0.2" /Library/Java/JavaVirtualMachines/jdk-10.0.2.jdk/Contents/Home /Library/Java/JavaVirtualMachines/jdk-10.0.2.jdk/Contents/Home
Can you try running ZIP distro? Since you can launch
java from the terminal, it must be enough to unzip it and run
ganttproject.command from the distro.
Thanks for the prompt reply, Dmitry.
I downloaded the ZIP distro, double-clicking on
gantproject.command opens the app successfully (of course, it also opens a terminal window, which is distracting).
Cool, thanks. Can you try running Java launcher from the terminal as well and post what it outputs? It should look like this:
provided that GanttProject dmg is mounted as volume.
If I just run in terminal:
I get no terminal output. Terminal is blocked until I click the “OK” in the error popup, then the app terminates, and no output is shown in between.
Do you mean, you still get “Unable to load Java Runtime Environment” popup? Finally, what if you explicitly set
export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk-10.0.2.jdk/Contents/Home before running JavaappLauncher?
Yes, I get the “unable to load Java Runtime Environment”.
Even with the
export command, same result.