添加 ubuntu-java-home.sh

This commit is contained in:
8ga 2025-01-10 14:50:46 +08:00
parent 26480dd7f5
commit b913ffe60d

4
ubuntu-java-home.sh Normal file
View File

@ -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