Update launch script to specify -jar as last option

The recommended usage for the java executable is:

    java [-options] -jar jarfile [args...]

This commit updates the default launch script to match this recommended
usage by moving -jar to be the last option, after both the
disableJarChecking system property and any JAVA_OPTS.

Closes gh-3930
This commit is contained in:
Andy Wilkinson 2015-09-21 14:51:03 +01:00
parent 1ce0ba6171
commit 94a737638e

View File

@ -109,7 +109,7 @@ else
fi
# Build actual command to execute
command="$javaexe -jar -Dsun.misc.URLClassPath.disableJarChecking=true $JAVA_OPTS $jarfile $RUN_ARGS $@"
command="$javaexe -Dsun.misc.URLClassPath.disableJarChecking=true $JAVA_OPTS -jar $jarfile $RUN_ARGS $@"
# Action functions
start() {