OracleJava (JVM/JDK) is no longer in the Debian/Ubuntu software source. Oracle has stopped the JDL protocol and only released OpenJDK. Of course, if you really need OracleJava, you can download it from the official website. The following describes how to install OracleJavaJDK7 In Ubuntu. Currently, OracleJavaJDK7 only releases the Developer Preview version. #1. Download OracleJDK7, click here, and select accept Association
Oracle Java (JVM/JDK) is no longer in the Debian/Ubuntu software source. Oracle has stopped the JDL protocol and only released OpenJDK. Of course, if you really need Oracle Java, you can download it from the official website.
The following describes how to install Oracle Java JDK 7 In Ubuntu.
Currently, only the Developer Preview version of Oracle Java JDK 7 is available.
#1. Download Oracle JDK 7
Click here, Select accept protocol, and download it.
#2. decompress the downloaded file
During decompression, a new folder "jdk1.7.0" is created ″. Move the folder to/usr/lib/jvm:
Cd
Sudo mkdir-p/usr/lib/jvm/# just in case
Sudo mv jdk1.7.0 // usr/lib/jvm/
#3. Install the upgraded Java software package (Ubuntu 10.04 + ):
Sudo add-apt-repository ppa: nilarimogard/webupd8
Sudo apt-get update
Sudo apt-get install update-java
If you do not want to add a PPA, you can directly download the script file.
#4. Open the terminal and run the following command to install Oracle Java JDK:
The sudo update-java Script will ask which Java version you choose. We select "Jdk1.7.0"
Wait a moment. After Java is installed, run the following command to query the java version:
Java-version
Javac-version
Install the Oracle Java 7 browser plug-in and Oracle JDK 6.