diff --git a/java8-install.sh b/java8-install.sh index f9d55e0..39e9a07 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 source /etc/profile java -version \ No newline at end of file