jar 启动设置环境变量

export JAVA_HOME=/usr/local/hk/tomcat/jdk1.8.0_121;
export PATH=$JAVA_HOME/bin:$PATH;
export CLASSPATH=.:$JAVA_HOME/lib/tools.jar:$JAVA_HOME/lib/dt.jar;
java -jar gjjapitest.jar

posted @ 2019-09-03 13:50  albert_think  阅读(6912)  评论(0编辑  收藏  举报