diff --git a/src/share/bin/launcher.sh-template b/src/share/bin/launcher.sh-template index c62af2e9b947c95d2d6a3eedf5261b8722a30d0f..16ade3e071d61260a38d5440fd15242576bff16a 100644 --- a/src/share/bin/launcher.sh-template +++ b/src/share/bin/launcher.sh-template @@ -38,7 +38,7 @@ mylib="`dirname $mydir`"/lib # dependent jar files for additional dependencies. if [ "$LANGTOOLS_USE_BOOTCLASSPATH" != "no" ]; then - cp=`unzip -c $mylib/#PROGRAM#.jar META-INF/MANIFEST.MF | + cp=`unzip -c "$mylib/#PROGRAM#.jar" META-INF/MANIFEST.MF | grep "Class-Path:" | sed -e 's|Class-Path: *||' -e 's|\([a-z]*\.jar\) *|'"$mylib"'/\1:|g'` bcp="$mylib/#PROGRAM#.jar":$cp