tar zxvf jdk-8u101-linux-x64.tar.gz

vi /etc/profile

JAVA_HOME=/home/puma/jdk1.8.0_111
JAVA_BIN=/home/puma/jdk1.8.0_111/bin
PATH=$PATH:$JAVA_BIN
CLASSPATH=$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
export JAVA_HOME JAVA_BIN JAVA_PATH=CLASSPATH

source /etc/profile

vi /etc/rc.d/rc.local

nohup java -jar /home/newlook/stm/newlook-1.0.0.jar &


debug_start.sh

env_name=$1

echo 'Starting application ' $env_name;

nohup java -jar -Dspring.profiles.active=production -Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n $1 &