linux在sh中运行java程序

Linux学习笔记 2014-10-07

sh文件内容:

LIB=./lib
for jar in $LIB/*.*
do
CLASSPATH=$CLASSPATH:$jar
done
$JAVA_HOME/bin/java -cp ${CLASSPATH} com.brenda.runJava

相关推荐