添加 ubuntu-java-home.sh
This commit is contained in:
parent
26480dd7f5
commit
b913ffe60d
4
ubuntu-java-home.sh
Normal file
4
ubuntu-java-home.sh
Normal 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
|
Loading…
Reference in New Issue
Block a user