更新 ubuntu-java-home.sh

This commit is contained in:
8ga 2025-01-10 14:51:08 +08:00
parent b913ffe60d
commit 1e92d673e6

View File

@ -1,3 +1,4 @@
#!/bin/bash
echo "export JAVA_HOME=/usr/local/jdk1.8.0_202" | tee -a /etc/profile 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 echo "export PATH=$PATH:/usr/local/jdk1.8.0_202/bin" | tee -a /etc/profile
source /etc/profile source /etc/profile