i have not looked at how debian does this (we probably better should do that), but FWIW this is my solution... this most probably is not what the original authors wanted though, because this will try to launch josm even on headless-only solutions i think. but it has the advantage, that it uses whatever jvm is available, even if it is only reachable by JAVA_HOME and/or JDK_HOME...
** Patch added: "josm-JAVA_HOME.patch" https://bugs.launchpad.net/ubuntu/+source/josm/+bug/916948/+attachment/3411954/+files/josm-JAVA_HOME.patch -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/916948 Title: josm does not always find a valid JVM To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/josm/+bug/916948/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs