From e38456615bc5652617ae0bf9acad0ed7152047f6 Mon Sep 17 00:00:00 2001 From: donny Date: Mon, 1 Nov 2021 08:13:07 +0000 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20'java8-install.sh'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- java8-install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java8-install.sh b/java8-install.sh index 39e9a07..50d3109 100644 --- a/java8-install.sh +++ b/java8-install.sh @@ -10,7 +10,7 @@ chmod +x /usr/local/jdk-8u311-linux-x64.tar.gz cd /usr/local && tar -zxvf jdk-8u311-linux-x64.tar.gz -C /usr/local echo export JAVA_HOME=/usr/local/jdk1.8.0_311>>/etc/profile -echo export PATH=$JAVA_HOME:$PATH>>/etc/profile +echo export PATH=/usr/local/jdk1.8.0_311/bin:$PATH>>/etc/profile source /etc/profile java -version \ No newline at end of file