oracle java tm 8,Install Oracle Java (JDK) 6 / 7 / 8 in Ubuntu 13.04

Oracle Java has been removed from the official Ubuntu repositories due to the new Java license. If you need to use Oracle Java instead of OpenJDK in Ubuntu, this simple tutorial will show you how to install Oracle Java (JDK which includs JRE) 6 / 7 / 8 in Ubuntu 13.04 using the ppa repository.

The Webupd8 Team created a ppa with packages which automatically downloads Oracle Java JDK from its official website and installs it on your computer. They are oracle-java6-installer, oracle-java7-installer, and oracle-java8-installer. The ppa supports for Ubuntu 13.04, 12.10, 12.04 and 10.04.

41114643_1.png

To get started, hit Ctrl+Alt+T to open a terminal window for running commands.

Remove OpenJDK first if installed by this command:

sudo apt-get purge openjdk*

Then add the Webupd8 Team PPA repository and then reload the packages:

sudo add-apt-repository ppa:webupd8team/java

sudo apt-get update

Now, install Oracle Java:

sudo apt-get install oracle-java7-installer

Or, change the number 7 to 6 or 8 to install Java6 or Java8.

After installation, run command to check if it was successful:

java -version

It should return something like this:

java version "1.7.0_17"

Java(TM) SE Runtime Environment (build 1.7.0_17-b02)

Java HotSpot(TM) Client VM (build 23.7-b01, mixed mode)

(Optional) To remove Oracle Java, run this command in terminal (change the package name to yours):

sudo apt-get remove oracle-java7-installer

Enjoy!

41114643_2.png41114643_3.png41114643_4.png

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值