Note: For downloading Java other flavors of Linux see Java for Ubuntu, Java for Fedora This procedure installs the Java Runtime Environment (JRE) for 64-bit RPM-based Linux platforms, such as Red Hat and Su SE, using an RPM binary file (.rpm) in the system location. The instructions below are for installing version Java 8 Update 73 (8u73).If you are installing another version, make sure you change the version number appropriately when you type the commands at the terminal. Hope this post of mine will help you in setting oracle Java, the easiest way.
This article will guide you through the process of installing and managing different versions of Java using There is another default Java installation called the JDK (Java Development Kit).Webupd8 Team is maintaining a PPA repository with installer scripts for the latest Java 8 and 9, that automatically downloads the Java archive from Oracle website and sets up everything for you. While the install process, you have to accept Java license to continue downloading & installing Java binaries. 32-bit Oracle Java instructions:64-bit Oracle Java instructions: Modify your Linux system PATH: Inform your system of the updated Oracle Java version: Community Q&A This document is intended to assist with the upgrade of the many new release versions of Oracle Java JDK/JRE on Ubuntu Linux.For reference, we have provided the source tarball file-name, please select and download these below mentioned file only. # cd /opt/java # wget --no-cookies --no-check-certificate --header "Cookie: oraclelicense=accept-securebackup-cookie" 11/c2514751926b4512b076cc82f959763f/jdk-9.0.4_linux-x64_gz That’s all for now. Oracle JDK7 itself is not hosted in the PPA because that's not allowed by the new Java license (which is also the reason why it has been removed from the official Ubuntu repositories); the package in the PPA automatically downloads Oracle Java JDK 7 from its official website and installs it on your Ubuntu / Linux Mint computer, just like the flashplugin-installer package [email protected]:/Data Stax_POC# which java /usr/bin/java [email protected]:/Data Stax_POC# java -version java version "1.8.0_66" Java(TM) SE Runtime Environment (build 1.8.0_66-b17) Java Hot Spot(TM) 64-Bit Server VM (build 25.66-b17, mixed mode) [email protected]:/Data Stax_POC# An alternative is the Zulu port of Open JDK which can be downloaded as a zip file, unpacked and used directly.To set this environment variable, we will first need to find out where Java is installed.You can do this by executing the same command as in the previous section: This will return the path you just set.It appears though that the requirement of glibc being at least 2.5 is satisfied) Another possible solution is to add the PPA repository from the project ubuntu-justchedavailable in the Github.This will provide a little bit different solution because it will download the Oracle JRE tarball to a previously configured directory and generate a DEB package from it.