Modify

Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#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:1 by sam.james.parkinson@…, 6 years ago

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.

Last edited 6 years ago by Don-vip (previous) (diff)

comment:2 by Don-vip, 6 years ago

Component: CoreInstaller MacOS
Keywords: homebrew added

comment:3 by Don-vip, 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.

Last edited 6 years ago by Don-vip (previous) (diff)

comment:4 by sam.james.parkinson@…, 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 sam.james.parkinson@…, 6 years ago

See https://github.com/Homebrew/homebrew-cask/pull/58808, which should help highlight this dependency once merged.

comment:6 by Don-vip, 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:8 by anonymous, 6 years ago

Works a treat.

https://i.imgur.com/DwitY2u.png

Last edited 6 years ago by Hb--- (previous) (diff)

in reply to:  8 comment:9 by sam.james.parkinson@…, 6 years ago

Comment 8 was from me.

Replying to anonymous:

Works a treat.

comment:10 by Hb---, 6 years ago

Keywords: macos added

comment:11 by Hb---, 6 years ago

Keywords: java11 added

comment:12 by Don-vip, 6 years ago

Milestone: 19.02

comment:13 by Don-vip, 6 years ago

Resolution: fixed
Status: newclosed

In 14793/josm:

fix #17278 - update macOS appbundler to https://mvnrepository.com/artifact/com.panayotis/appbundler/1.1.0 for Java 9+ compatibility

comment:14 by Hb---, 6 years ago

Is JOSM incompatible with Java 8 on Mac after this fix?

comment:15 by anonymous, 6 years ago

Seems okay.

Uninstalled Java 11, and installed Java 8 again with brew.

brew cask zap java
brew cask install java8

https://i.imgur.com/xeP7JbH.png

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain team.
as The resolution will be set.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.