#17278 closed defect (fixed)
JOSM.app reports "Unable to load Java Runtime Environment" on mac os
Reported by: | anonymous | Owned by: | team |
---|---|---|---|
Priority: | normal | Milestone: | 19.02 |
Component: | Installer MacOS | Version: | |
Keywords: | homebrew macos java11 | Cc: |
Description
On mac os 10.11 El Capitan installed JOSM.app version 14620 via homebrew. Clicking on JOSM.app result in "Unable to load Java Runtime Environment." message, while the following command line runs fine
java -jar /Applications/JOSM.app/Contents/Java/josm-snapshot-14620.jar
~$ java --version
openjdk 11.0.2 2019-01-15
OpenJDK Runtime Environment 18.9 (build 11.0.2+9)
OpenJDK 64-Bit Server VM 18.9 (build 11.0.2+9, mixed mode)
Attachments (0)
Change History (15)
comment:2 by , 6 years ago
Component: | Core → Installer MacOS |
---|---|
Keywords: | homebrew added |
comment:3 by , 6 years ago
I don't have any mac nor I know what homebrew does, neither who created this stuff. I cannot analyze the issue and have no idea if we should do something. Can you please investigate? Only a macOS user can solve this kind of stuff.
comment:4 by , 6 years ago
It's mentioned as a method of installation at https://josm.openstreetmap.de/wiki/Download#brew.
https://github.com/Homebrew/homebrew-cask-versions/blob/master/Casks/josm-latest.rb looks to be the install script that is run.
Could it be related to us both only having JDK11. After installing JDK8 it works just fine of course!
I'll open a pull request to update the cask to include a caveat that JSOM.app requires JDK8 to be installed.
The install instructions could also be updated to include...
$ brew tap homebrew/cask-versions $ brew cask install java8
comment:5 by , 6 years ago
See https://github.com/Homebrew/homebrew-cask/pull/58808, which should help highlight this dependency once merged.
comment:6 by , 6 years ago
Ah, maybe this is unrelated to brew but we need to update the library that generates the .app file. JOSM is compatible with Java 11, this is only a packaging issue.
comment:7 by , 6 years ago
Can you please try to uninstall Java 8 and launch https://josm.openstreetmap.de/raw-attachment/ticket/17278/josm-custom-macosx.zip ? I have used https://mvnrepository.com/artifact/com.panayotis/appbundler/1.1.0 hoping it works with Java 11.
comment:10 by , 6 years ago
Keywords: | macos added |
---|
comment:11 by , 6 years ago
Keywords: | java11 added |
---|
comment:12 by , 6 years ago
Milestone: | → 19.02 |
---|
I'm also getting the same issue.
macOS 10.14.2
java openjdk 11.0.2
Have installed JOSM today using brew. Tried opening JOSM which reported the java error, so have installed java using brew too, but still get the error.