Bug#709976: java-wrappers: run_jar() handles command line arguments wrong
Hilko Bengen
bengen at debian.org
Mon May 27 08:40:04 UTC 2013
Package: java-wrappers
Version: 0.1.25
Severity: important
Tags: patch
Dear Maintainer,
The run_jar() function in /usr/lib/java-wrappers/java-wrappers.sh
contains the following lines:
if locate_jar $1; then
shift
run_java -jar "$@"
else
java_fail "Unable to find jar $1 in $JAVA_JARPATH"
fi
If locate_jar() finds the specified JAR file, it places the path into
$found_jar, but its result is not used.
Replacing
run_java -jar "$@"
with
run_java -jar "$found_jar" "$@"
should do the trick.
Cheers,
-Hilko
More information about the pkg-java-maintainers
mailing list