hi all,
I’ve bought a new 16" Macbook Pro and using macOS Catalina. I’m trying to install GanttProject but not successfully. I’ve installed the latest Java version for Oracle website. but still cannot run GanttProject. Anyone can help given us advise besides telling me to downgrade the macOS.
Regards,
Arthur
Please read this Knowledge Base article and try workarounds described there:
opened 06:19PM - 30 Jan 19 UTC
OpSys-OSX
KnowledgeBase
## Symptoms and Summary
You have macOS and you can't launch GanttProject appl… ication. It either says "Unable to load Java Runtime environment" or just nothing happens after double-clicking the application. These issues are reportedly specific to macOS Mojave with Java 10, however, there are chances of seeing them on other combinations of macOS versions and Java Runtimes.
Unfortunately, currently Java ecosystem passes a kind of turbulence, and vendors of Java Runtimes, operating systems and launcher applications cannot always agree with each other about the location of Java on the file system, and this is especially true on macOS.
Below you can find two approaches to fixing this issue.
## Distribution with bundled Java Runtime
The first approach is using GanttProject distro with bundled Java Runtime. We will officially start buildign such distros for all platforms with the next major GanttProject release, but meanwhile, we prefer to distribute GanttProject with no bundled Java. However, there is a special experimental [GanttProject distro with bundled Java 11 Runtime for macOS](https://www.dropbox.com/s/lj2uipbs4l6ygfc/ganttproject-2.8.10-r2364-jre.dmg?dl=0) which is available from our Dropbox folder. This distro is somewhat experimental, however, it is reported to be working. It is supposed to run fine without any additional downloads.
## Pointing GanttProject to your existing Java Runtime
The second approach is to make GanttProject aware of your installed Java Runtime.
### Essential diagnostics
Make sure that you really have Java Runtime. Open `Terminal` application and type `java -version` command. If Java Runtime is installed, you should see something like
```
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)
```
### Solution
1. If Java Runtime is not installed, please install it. For GanttProject 2.8+ [Java Runtime version 8](https://www.oracle.com/technetwork/java/javase/downloads/jre8-downloads-2133155.html) is recommended, although more recent versions most likely will be okay.
1. If Java Runtime is installed, and you can run `java` in Terminal, you have a few options. First is to just try running GanttProject again. [According to tests from our users](https://help.ganttproject.biz/t/running-ganttproject-on-macos-mojave-with-java-10/587/19?u=dmitrybarashev) it may help. If it does not then please try using [fallback distro for Mojave](https://www.ganttproject.biz/dl/2.8.10/mac-mojave) which basically runs a shell script which executes `java` command with appropriate arguments.
Hi Dmitry,
Morning, thanks for your advise. It’s work for me now.
Best Regards,
Arthur Yeung
Managing Director
E: [email protected]
M: +852 9467 3404
MoonGrass Design Workshop ltd.
www.mg-dw.com
28/F, Skyway Centre, 23 Queen Road West, Sheung Wan, HK.
Hong Kong . ShenZhen . Shanghai . HangZhou . Beijing