打开APP
userphoto
未登录

开通VIP,畅享免费电子书等14项超值服

开通VIP
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.

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!

本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请点击举报
打开APP,阅读全文并永久保存 查看更多类似文章
猜你喜欢
类似文章
【热】打开小程序,算一算2024你的财运
Ubuntu16.04 安装openjdk
Ubuntu 16.04 Java8 安装
How to Install Oracle Java 7/8 (JDK and JRE) In Ubuntu 14.04, 13.10, Via PPA
Ubuntu 安装 JDK 7 / JDK8 的两种方式
在ubuntu下用apt
how to install jdk on Ubuntu
更多类似文章 >>
生活服务
热点新闻
分享 收藏 导长图 关注 下载文章
绑定账号成功
后续可登录账号畅享VIP特权!
如果VIP功能使用有故障,
可点击这里联系客服!

联系客服