ubuntu 安装jdk

1.添加ppa

   sudo add-apt-repository ppa:webupd8team/java

   sudo apt-get update

2.安装oracle-java-installer

 jdk7

sudo apt-get install oracle-java7-installer

 jdk8

sudo apt-get install oracle-java8-installer
posted @ 2017-08-06 15:10  次序  阅读(122)  评论(0编辑  收藏  举报