Changeset 10580 in josm for trunk/linux/latest/usr/bin/josm-latest
- Timestamp:
- 2016-07-21T01:57:41+02:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/linux/latest/usr/bin/josm-latest
r10430 r10580 3 3 set -e 4 4 5 # First, users preference as defined by $JAVA_HOME. Next, use OpenJDK or Oracle's proprietary JDK.5 # First, the alternative (if known to work) or users preference as defined by $JAVA_HOME. Next, use OpenJDK or Oracle's proprietary JDK. 6 6 # Override to a specific one using $JAVACMD 7 ALTERNATIVE_JDK="`readlink -n -f /etc/alternatives/java`" 8 7 9 # Let's get the current architecture -- needed for multiarchified Java 8 10 ARCH="`dpkg --print-architecture 2> /dev/null || true`" … … 12 14 JAVA_CMDS="$JAVA_HOME/bin/java" 13 15 JAVA_CMDS="${JAVA_CMDS} /usr/lib/jvm/java-8-openjdk/bin/java /usr/lib/jvm/java-8-openjdk-$ARCH/bin/java /usr/lib/jvm/java-8-oracle/bin/java" 14 JAVA_CMDS="${JAVA_CMDS} /usr/lib/jvm/java-7-openjdk/bin/java /usr/lib/jvm/java-7-openjdk-$ARCH/bin/java /usr/lib/jvm/java-7-oracle/bin/java"15 16 JAVA_CMDS="${JAVA_CMDS} /usr/lib/jvm/java-9-openjdk/bin/java /usr/lib/jvm/java-9-openjdk-$ARCH/bin/java /usr/lib/jvm/java-9-oracle/bin/java" 16 17 else 17 18 JAVA_CMDS="$JAVA_HOME/bin/java /usr/bin/java" 18 19 JAVA_CMDS="${JAVA_CMDS} /usr/lib/jvm/java-8-oracle/bin/java" 19 JAVA_CMDS="${JAVA_CMDS} /usr/lib/jvm/java-7-oracle/bin/java"20 20 JAVA_CMDS="${JAVA_CMDS} /usr/lib/jvm/java-9-oracle/bin/java" 21 21 fi … … 26 26 27 27 JAVA_OPTS="-Djosm.restart=true -Djosm.home=$HOME/.josm-latest -Djava.net.useSystemProxies=true $JAVA_OPTS" 28 29 if [ -z "${JAVACMD}" ]; then 30 for jcmd in $JAVA_CMDS; do 31 if [ "z$ALTERNATIVE_JDK" = "z`readlink -n -f $jcmd`" ] && [ -z "${JAVACMD}" ]; then 32 JAVACMD="$jcmd" 33 break 34 fi 35 done 36 fi 28 37 29 38 if [ -z "${JAVACMD}" ]; then
Note:
See TracChangeset
for help on using the changeset viewer.