Ubuntu 安装 JAVA 8

JamWorsnop 9年前

来自: http://my.oschina.net/cimu/blog/614678


安装Java 8:

$ sudo add-apt-repository ppa:webupd8team/java  $ sudo apt-get update  $ sudo apt-get install oracle-java8-installer



验证JAVA安装:

rahul@tecadmin:~$ java -version    java version "1.8.0_72"  Java(TM) SE Runtime Environment (build 1.8.0_72-b15)  Java HotSpot(TM) 64-Bit Server VM (build 25.72-b15, mixed mode)



配置JAVA环境:

$ sudo apt-get install oracle-java8-set-default