src/share/bin/launcher.sh-template

changeset 871
bfa59f3e84bd
parent 805
7c33098600b2
child 962
0ff2bbd38f10
equal deleted inserted replaced
870:3ce4e1a07e92 871:bfa59f3e84bd
29 case `uname -s` in 29 case `uname -s` in
30 CYGWIN*) 30 CYGWIN*)
31 mydir=`cygpath -m $mydir` 31 mydir=`cygpath -m $mydir`
32 ;; 32 ;;
33 esac 33 esac
34 34 mylib="$mydir/../lib"
35 mylib="`dirname $mydir`"/lib
36 35
37 # By default, put the jar file and its dependencies on the bootclasspath. 36 # By default, put the jar file and its dependencies on the bootclasspath.
38 # This is always required on a Mac, because the system langtools classes 37 # This is always required on a Mac, because the system langtools classes
39 # are always on the main class path; in addition, it may be required on 38 # are always on the main class path; in addition, it may be required on
40 # standard versions of JDK (i.e. using rt.jar and tools.jar) because some 39 # standard versions of JDK (i.e. using rt.jar and tools.jar) because some
71 IFS="$saveIFS" 70 IFS="$saveIFS"
72 done 71 done
73 unset DUALCASE 72 unset DUALCASE
74 73
75 IFS=$nl 74 IFS=$nl
76 "#TARGET_JAVA#" "${bcp:+-Xbootclasspath/p:"$bcp"}" ${ea} ${javaOpts} -jar "${mydir}"/../lib/#PROGRAM#.jar ${toolOpts} 75 "#TARGET_JAVA#" "${bcp:+-Xbootclasspath/p:"$bcp"}" ${ea} ${javaOpts} -jar "${mylib}/#PROGRAM#.jar" ${toolOpts}

mercurial