最近需要用java,已经使用ubuntu和node.js多年,一装才知道java9已经不被支持了,度娘搜不到想要的信息,最后在添加java8的ppa的时候,仔细看了一下信息,给出了java10的相关信息,记录如下:
安装java10信息页面
https://www.linuxuprising.com/2018/04/install-oracle-java-10-in-ubuntu-or.html
安装步骤
-
add the LinuxUprising Java PPA repository
sudo add-apt-repository ppa:linuxuprising/java sudo apt update sudo apt install oracle-java10-installer
-
make Oracle JDK 10 as default
sudo apt install oracle-java10-set-default
-
Oracle Java 10 installed but not set it as the default Java
sudo apt remove oracle-java10-set-default
-
checking your current Java version
java -version javac -version