diff --git a/ubuntu-java-home.sh b/ubuntu-java-home.sh new file mode 100644 index 0000000..f79ec5f --- /dev/null +++ b/ubuntu-java-home.sh @@ -0,0 +1,4 @@ +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