一. 编辑 /etc/profile
JAVA_HOME=/home/free/software/jdk1.8.0_144/
PATH=$JAVA_HOME/bin:$PATH
CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
export JAVA_HOME
export PATH
export CLASSPATH
/etc/profile
JAVA_HOME=/home/free/software/jdk1.8.0_144/
PATH=$JAVA_HOME/bin:$PATH
CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
export JAVA_HOME
export PATH
export CLASSPATH
source /etc/profile
本文标题:Linux 下配置 Java 环境变量
本文链接:https://www.haomeiwen.com/subject/xzawmxtx.html
网友评论