Ubuntu 14.04 Installing Java JDK

Source: Internet
Author: User
Tags java se

Linux under Installation configuration JDK7

Since the acquisition of Sun from Oracle for nearly three years, there have been many changes. As early as August, Oracle terminated the "Operating System distributor License for Java" license, which meant that third parties would not be able to distribute their packages based on this license.
  So Ubuntu Linux has started disabling the Oracle JDK browser plugin on all machines and will soon remove the package from the archive.
The company points out that disabling Oracle's plug-ins will help improve security, as these plugins have been proven to contain many vulnerabilities, although this is a fact, but the real reason is that Sun's JDK will be upgraded to clean up the user's machine on the self-perceived unsafe software, most PC users think it is safe, But users of Unix-based systems generally don't think so.
After Oracle's JDK is deprecated, OPENJDK will replace it in the default installation of Ubuntu and other Linux.

While many Linux distributions now come with OPENJDK, they are slightly different from ORACLE-JDK (SUN-JDK) during development. Typically, Java developers are developing with ORACLE-JDK as a standard.
Here's a look at the JDK installation and configuration under Linux, and the Linux distribution used here is Ubuntu 12.04.

1. Download the JDK

Currently the latest JDK version is: Java SE development Kit 7u5

View Latest:

2. Unzip the installation

We install the JDK to this path:/USR/LIB/JVM
If there is no such directory (the first time of course not), we will create a new directory

cd /usr/libsudo mkdir jvm

After the establishment of the good, we came to the download of the compressed package directory, extracted to our newly created folder inside, and modify the name to facilitate our management

sudo tar zxvf ./jdk-7-linux-i586.tar.gz  -C /usr/lib/jvmcd /usr/lib/jvmsudo mv jdk1.7.0_05/ jdk7

Ubuntu 14.04 Installing Java JDK

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.