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