diff --git a/ubuntu-jdk8.sh b/ubuntu-jdk8.sh index edbe635..5bcb537 100644 --- a/ubuntu-jdk8.sh +++ b/ubuntu-jdk8.sh @@ -2,7 +2,4 @@ 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 PATH=$PATH:/usr/local/jdk1.8.0_202/bin" | tee -a /etc/profile -source /etc/profile -java -version \ No newline at end of file +bash ubuntu-java-home.sh \ No newline at end of file