您的位置:首页 > 运维架构 > Linux

How to Install JAVA 8 (JDK 8u40) on Ubuntu & LinuxMint Via PPA

2015-03-16 08:33 531 查看
[From:] http://tecadmin.net/install-oracle-java-8-jdk-8-ubuntu-via-ppa/
Oracle JAVA 8 Stable release has been released on Mar,18 2014 and available to download and install on

official download page. Oracle Java PPA for Ubuntu and
LinuxMint
is being maintained by
Webupd8 Team. JAVA 8 is released with many of new features and security updates, read more about

whats new in Oracle Java 8.



This article will help you to Install Oracle JAVA 8 (JDK/JRE 8u25) on
Ubuntu 14.04 LTS, 12.04 LTS and 10.04 and
LinuxMint
systems using PPA File. To Install Java 8 in CentOS, Redhat and Fedora read

This Article.

Installing Java 8 on Ubuntu

Add the webupd8team Java PPA repository in your system and install Oracle Java 8 using following set of commands.

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

Verify Installed Java Version

After successfully installing oracle Java using above step verify installed version using following command.

rahul@tecadmin:~$ java -version

java version "1.8.0_40"
Java(TM) SE Runtime Environment (build 1.8.0_40-b25)
Java HotSpot(TM) 64-Bit Server VM (build 25.40-b25, mixed mode)

Configuring Java Environment

In Webupd8 ppa repository also providing a package to set environment variables, Install this package using following command.

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

References:

https://launchpad.net/~webupd8team/+archive/java
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: