当前位置: 技术问答>linux和unix
java项目发布到linux环境,启动报错
来源: 互联网 发布时间:2017-02-06
本文导语: java项目发布到linux环境,启动shell脚本报:Unable to access jarfile mobileBank.jar 以下是froadStart.sh脚本的内容 pwd=$PWD WORK=$HOME/MobileBank cd $WORK/lib nohup java -Dfile.encoding="gb2312" -Xms512m -Xmx1024m -jar mobileBank.jar start >> ...
java项目发布到linux环境,启动shell脚本报:Unable to access jarfile mobileBank.jar
以下是froadStart.sh脚本的内容
pwd=$PWD
WORK=$HOME/MobileBank
cd $WORK/lib
nohup java -Dfile.encoding="gb2312" -Xms512m -Xmx1024m -jar mobileBank.jar start >> $WORK/logs/O/console_output &
cd $pwd
sleep 4
#tail -n 10 $WORK/logs/O/infos.log
tail -n 10 $WORK/logs/O/console_output
ps -ef|grep mobileBank|grep java
求高手指点
以下是froadStart.sh脚本的内容
pwd=$PWD
WORK=$HOME/MobileBank
cd $WORK/lib
nohup java -Dfile.encoding="gb2312" -Xms512m -Xmx1024m -jar mobileBank.jar start >> $WORK/logs/O/console_output &
cd $pwd
sleep 4
#tail -n 10 $WORK/logs/O/infos.log
tail -n 10 $WORK/logs/O/console_output
ps -ef|grep mobileBank|grep java
求高手指点
|
没玩过java,检查一下这3个环境变量
JAVA_HOME、CLASSPATH、PATH
JAVA_HOME、CLASSPATH、PATH