Ubuntu下安装JDK
2019-01-02 本文已影响0人
邵增卫
#安装python-software-properties
apt-get install python-software-properties
apt-get install software-properties-common
添加ppa
add-apt-repository ppa:webupd8team/java
然后更新系统
apt-get update
最后开始安装
apt-get install oracle-java8-installer
java版本切换
update-java-alternatives -s java-8-oracle