|
@ -156,7 +156,7 @@ vi /etc/profile |
|
|
在文件末尾添加 |
|
|
在文件末尾添加 |
|
|
|
|
|
|
|
|
``` |
|
|
``` |
|
|
export JAVA_HOME=/usr/java/jdk-1.8.0_391 |
|
|
|
|
|
|
|
|
export JAVA_HOME=/usr/java/jdk1.8.0_391 |
|
|
export PATH=$JAVA_HOME/bin:$PATH |
|
|
export PATH=$JAVA_HOME/bin:$PATH |
|
|
export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib |
|
|
export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib |
|
|
``` |
|
|
``` |
|
|