linux运行java类
#!/bin/bash
WORKDIR=/opt/applications/
JARFILE=$WORKDIR/target/abc.jar
#if [ $# -lt 2 ]
#then
# echo argument is missing
# exit
#fi
cd $WORKDIR
for file in `ls $WORKDIR/lib/*.jar` ;
do
CLASSPATH="$CLASSPATH":"$file"
done
CLASSPATH="$CLASSPATH":"$JARFILE"
export CLASSPATH=$CLASSPATH
java -classpath $CLASSPATH com.AAAA
echo "done!!!"