📄 build.sh
字号:
# This script builds and preverifies the code # for the tumbleweed game.# reset this variable to the path to the correct javac# command on your system:JAVA4_HOME=/usr/java/j2sdk1.4.0_01/bin# reset this variable to the corresct path to the WTK2.0# directory of the WTK2.0 toolkit that you downloaded:WTK2_HOME=../../../../WTK2.0echo "clear directories"# it's better not to leave old class files lying # around where they might accidentally get picked up # and create errors...rm ../tmpclasses/net/frog_parrot/hello/*.classrm ../classes/net/frog_parrot/hello/*.classrm ../tmpclasses/net/frog_parrot/jump/*.classrm ../classes/net/frog_parrot/jump/*.classecho "Compiling source files"$JAVA4_HOME/javac -bootclasspath $WTK2_HOME/lib/midpapi.zip -d ../tmpclasses -classpath ../tmpclasses ../src/net/frog_parrot/hello/*.java ../src/net/frog_parrot/jump/*.javaecho "Preverifying class files"$WTK2_HOME/bin/preverify -classpath $WTK2_HOME/lib/midpapi.zip:../tmpclasses -d ../classes ../tmpclassesecho "Jarring preverified class files"$JAVA4_HOME/jar cmf MANIFEST.MF jump.jar -C ../classes .echo "Updating JAR size info in JAD file..."NB=`wc -l jump.jad | awk '{print $1}'`head --lines=$(($NB-1)) jump.jad > jump.jad1echo "MIDlet-Jar-Size:" `stat -c '%s' jump.jar`>> jump.jad1cp jump.jad1 jump.jad
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -