#!/bin/bash
echo "$0 $@"
BASEDIR=`dirname $0`
if test -z $JAVA_HOME; then
JAVA_BIN=java
else
JAVA_BIN=$JAVA_HOME/bin/java
fi
echo "JAVA_BIN: $JAVA_BIN"
logjar=`ls $DEVELOP_HOME/lib | grep "commons-logging-" | grep jar`
CLASS_PATH=""
for i in `ls $DEVELOP_HOME/*.jar`;do
CLASS_PATH=$i:$CLASS_PATH
done
CLASS_PATH=$DEVELOP_HOME/lib/$logjar:CLASS_PATH
$JAVA_BIN -cp $CLASS_PATH $MAIN_CLASS $@
exit 0
Shell运行Java程序
最新推荐文章于 2023-04-25 18:47:47 发布