Sourcing java on JOSM build for OSX
Vincent Privat
vincent.privat at gmail.com
Sun Jun 16 15:46:49 UTC 2019
Hi Marc,
JOSM bundle for macOS is currently built using this fork of "appbundler":
https://github.com/teras/appbundler
It seems the launcher doesn't care about JAVA_HOME but chooses explicitely
JavaAppletPlugin by default:
https://github.com/teras/appbundler/blob/master/appbundler/native/main.m#L57
It should be reported and fixed there, until we can switch to the new
"jpackager" tool that will appear soon in OpenJDK itself:
https://bugs.openjdk.java.net/browse/JDK-8200758
Cheers,
Vincent
Le jeu. 13 juin 2019 à 22:47, Marc Grober <marc at interak.com> a écrit :
> I am currently running High Sierra and JDK 12. I have been trying to
> identify how to get the JOSM (latest-tested) OSX build
> (https://josm.openstreetmap.de/download/macosx/josm-macosx.zip) to
> source JDK 12 as opposed to using the JRE identified by the Java Panel
> (which is the now defunct "internet plugin"). I have run the jar that
> comes in the package, and I have also replaced that jar with
> latest-tested downlaoded directly, with no change in behavior if I run
> from Applications. If I run from command line, JOSM sources the java set
> in JAVA_HOME.
>
> I have been unable to find anything that identifies whether any of the
> OSX files (like info.plist) or JOSM settings provide the option to set
> how JOSM sources Java, and JOSM does not source JAVA_HOME if started
> from Applications.
>
> I can't tell whether the current state of affairs is a feature, a bug,
> or simply an artifact of my own ignorance.
>
> But, I am guessing that more and more OSX users will be confronting the
> same problem, and it may get worse as I have heard that Apple will be
> eliminating the Java Panel and plugin location in new version of the OS.
>
> Since JOSM works just fine if invoked from CLI, I have to assume that
> something in Contents is pointing JOSM to the Internet plugin, instead
> of to JAVA_HOME.
>
> Can someone tell me how, where one can find and adjust this, and perhaps
> this could be modified in the OSX build to first look to see if
> JAVA_HOME is set, and then use Java from there?
>
> --
> "There are more things in heaven and earth, Horatio,
> Than are dreamt of in your philosophy. "
>
>
>
More information about the josm-dev
mailing list