langtools/src/share/bin/launcher.sh-template
changeset 8421 b268534d3e7a
parent 7843 1103fac3fb5a
child 9087 e9e44877cd18
--- a/langtools/src/share/bin/launcher.sh-template	Wed Feb 09 14:10:52 2011 -0800
+++ b/langtools/src/share/bin/launcher.sh-template	Wed Feb 09 18:26:08 2011 -0800
@@ -31,8 +31,7 @@
       mydir=`cygpath -m $mydir`
       ;;
 esac
-
-mylib="`dirname $mydir`"/lib
+mylib="$mydir/../lib"
 
 # By default, put the jar file and its dependencies on the bootclasspath.
 # This is always required on a Mac, because the system langtools classes
@@ -73,4 +72,4 @@
 unset DUALCASE
 
 IFS=$nl
-"#TARGET_JAVA#" "${bcp:+-Xbootclasspath/p:"$bcp"}" ${ea} ${javaOpts} -jar "${mydir}"/../lib/#PROGRAM#.jar ${toolOpts}
+"#TARGET_JAVA#" "${bcp:+-Xbootclasspath/p:"$bcp"}" ${ea} ${javaOpts} -jar "${mylib}/#PROGRAM#.jar" ${toolOpts}