Since josm (0.0.svn8969+dfsg-1) java-7-oracle (and its Java 8 & 9 alternatives) are included in the list of possible java commands.
The /usr/bin/josm used by the upstream packages for their PPA [0] and the one used for the Debian package included in Debian and derivatives have been synchronized with the update to JOSM 8989. [1] Both OpenJDK & the Oracle JDK packages for Ubuntu are now supported in /usr/bin/josm, if you need josm to use a different JDK it has been possible to specify it with the JAVACMD environment variable for quite some time, e.g. for the JDK package built by make-jpkg: JAVACMD=/usr/lib/jvm/jdk-8-oracle-x64/bin/java josm If the /usr/bin/java configured with the alternatives system is found in the list of possible java commands that one will be used, if it's not found the first java command that exists and is executable will be used. The list of possible java commands is not checked when JAVACMD was already defined in the environment. [0] https://josm.openstreetmap.de/wiki/Download#Ubuntu [1] https://josm.openstreetmap.de/ticket/12033 ** Bug watch added: JOSM bug tracker #12033 http://josm.openstreetmap.de/ticket/12033 ** Changed in: josm (Ubuntu) Status: Confirmed => Fix Released -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1186377 Title: josm fails to start "No valid JVM found to run JOSM." due to lack of $JAVA_HOME on Ubuntu To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/josm/+bug/1186377/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs