From b913ffe60df97a6c4dc06c4d0cd4e31b6b630af5 Mon Sep 17 00:00:00 2001 From: 8ga Date: Fri, 10 Jan 2025 14:50:46 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=20ubuntu-java-home.sh?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ubuntu-java-home.sh | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 ubuntu-java-home.sh 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