怎么安装JAVA 8 在系统 Ubuntu 18.04/16.04, Linux Mint 19/18
第一部
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer
sudo apt-get update
sudo apt-get install oracle-java8-installer
第二步
sudo apt-get install oracle-java8-set-default
java -version
java -version
第三步
cat >> /etc/environment <<EOL
JAVA_HOME=/usr/lib/jvm/java-8-oracle
JRE_HOME=/usr/lib/jvm/java-8-oracle/jre
EOL
JAVA_HOME=/usr/lib/jvm/java-8-oracle
JRE_HOME=/usr/lib/jvm/java-8-oracle/jre
EOL
相关推荐
lonesomer 2020-09-17
liyansring 2020-08-15
liym 2020-07-20
katanaFlower 2020-07-05
JM 2020-06-21
zhangpan 2020-06-11
greent00 2020-06-10
changecan 2020-11-19
sunnnyduan 2020-10-16
houdaiye 2020-09-23
XPZ0 2020-09-22
changecan 2020-09-22
jackadmi 2020-09-11
yuan00yu 2020-08-24
yserver 2020-08-15
liai 2020-08-09
山有木兮卿有意 2020-08-03
85206633 2020-07-28