更新 ubuntu-jdk8.sh
This commit is contained in:
parent
32accaee2f
commit
26480dd7f5
@ -3,7 +3,6 @@ cd /usr/local
|
||||
wget https://mirrors.huaweicloud.com/java/jdk/8u202-b08/jdk-8u202-linux-x64.tar.gz
|
||||
tar -zvxf jdk-8u202-linux-x64.tar.gz
|
||||
echo "export JAVA_HOME=/usr/local/jdk1.8.0_202" | tee -a /etc/profile
|
||||
echo "export CLASSPATH=$:CLASSPATH:$JAVA_HOME/lib/" | tee -a /etc/profile
|
||||
echo "export PATH=$PATH:$JAVA_HOME/bin" | tee -a /etc/profile
|
||||
echo "export PATH=$PATH:/usr/local/jdk1.8.0_202/bin" | tee -a /etc/profile
|
||||
source /etc/profile
|
||||
java -version
|
Loading…
Reference in New Issue
Block a user