sh/ubuntu-java-home.sh

5 lines
190 B
Bash
Raw Normal View History

2025-01-10 14:51:08 +08:00
#!/bin/bash
2025-01-10 14:50:46 +08:00
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