java项目发布到linux环境,启动报错
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
求高手指点
------解决方案--------------------
没玩过java,检查一下这3个环境变量
JAVA_HOME、CLASSPATH、PATH