linux配置java环境变量

cat /etc/profile.d/java.sh 
JAVA_HOME=/usr/local/java/jdk1.8.0_74
PATH=/usr/local/mysql/bin:$JAVA_HOME/bin:$JAVA_HOME/jre/bin:$PATH
CLASSPATH=.:$JAVA_HOME/lib:$JAVA_HOME/jre/lib:$CLASSPATH
#JAVA_OPTS="-Xms2048m -Xmx2048m -XX:PermSize=256m -XX:MaxPermSize=512m"
export PATH JAVA_HOME CLASSPATH

你可能感兴趣的:(java,linux)