Ubuntu Oracle JRE

A few hours ago I had to install DataStax OpsCenter from the DataStax (community) repository on a new installation of Ubuntu 14.04. DataStax OpsCenter is a browser-based management application for DataStax Enterprise, DataStax Community and Apache Cassandra, a distributed NoSQL database.

Cassandra/OpsCenter requires Oracle JRE, but applications installed using Ubuntu’s package manager are hard-wired to use OpenJDK JRE. So if Oracle JRE is installed, it has to be configured to be the default JRE, before or after the installation of OpsCenter. This post show how to get that task done.

To install Oracle JRE, visit the official download page and click on the JRE button for the version of JRE you want to download. For this tutorial, I clicked on the JRE button under the Java SE 7u67 section to download the JRE 1.7 version. On the page that comes up after that, accept the license and download the gzipped tarball for the 64-bit platform (recommended)

Related Post:  OPPO N1: CyanogenMod, Color ROM smartphone

If you have not modified the configuration of your browser (Firefox or Chrome), the downloaded file should be in the Downloads folder. Open a terminal and cd into that folder. An ls inside that folder should show the target file. This image shows the listing on my system.
Oracle JRE Ubuntu 14.04

To install it, do the following:

1. Create a directory where the application will be installed: sudo makdir -p /usr/lib/jvm.

2. Unpack and install it. Be sure to replace the version of the tarball used here with the version that you downloaded: sudo tar xf jre-7u67-linux-x64.tar.gz -C /usr/lib/jvm.

3. Oracle JRE is now installed, but the system doesn’t know it yet. If you type java -version, the system will report, provided you have no other JRE installed, that no JRE is installed. You can change that by typing: sudo update-alternatives --install "/usr/bin/java" "java" "/usr/lib/jvm/jre1.7.0_67/bin/java" 1

4. Set Oracle JRE as the default: sudo update-alternatives --set java /usr/lib/jvm/jre1.7.0_67/bin/java.
An easier method of setting a default JRE, especially if another JRE is installed, is to use this form: sudo update-alternatives --config java . That will bring up the options shown in this image.
Update-alternatives Java JRE

Related Post:  These reCAPTCHAs where not meant to be read by humans

5. After all is done, you can verify the version of JRE the system is using by typing: java -version. If it’s Oracle JRE, you will get an output of the sort shown in this image
Ubuntu OpenJDK JRE

Or this, if it’s OpenJDK JRE.
Ubuntu Oracle JRE


Share on facebook
Share on twitter
Share on pinterest
Share on linkedin

Hola! Did you notice that LinuxBSDos.com no longer runs network ads?  Yep, no more ads from the usual suspects that track you across the Internet.  But since  I still need to pay to keep the site running, feel free to make a small donation by PayPal.

Subscribe for updates. Trust me, no spam!

Mailchimp Signup Form

Sponsored links

1. Attend Algorithm Conference, a top AI and ML event for 2020.
2. Reasons to use control panel for your server.
3. DHgate Computers Electronics, Cell Phones & more.

Leave a Reply

Your email address will not be published. Required fields are marked *

Get the latest

On social media
Via my newsletter
Mailchimp Signup Form

Partner links

1. Attend Algorithm Conference, a top AI and ML event for 2021.
2. Reasons to use control panel for your server.
3. DHgate Computers Electronics, Cell Phones & more.
Hacking, pentesting distributions

Linux Distributions for Hacking

Experts use these Linux distributions for hacking, digital forensics, and pentesting.


The authors of these books are confirmed to speak during

Algorithm Conference

T-minus AI

Author was the first chairperson of AI for the U.S. Air Force.

The case for killer robots

Author is the Director of the Center for Natural and Artificial Intelligence.

Why greatness cannot be planned

Author works on AI safety as a Senior Research Scientist at Uber AI Labs.

Anastasia Marchenkova

An invitation from Anastasia Marchenkova

Hya, after stints as a quantum researcher at Georgia Tech Quantum Optics & Quantum Telecom Lab, and the University of Maryland Joint Quantum Institute, I’m now working on superconducting qubit quantum processors at Bleximo. I’ll be speaking during Algorithm Conference in Austin, Texas, July 16 – 18, 2020. Meet me there and let’s chat about progress and hype in quantum computing.