openjdk-8 on Linux Mint 17.2

Questions about applications and software
Forum rules
Before you post please read how to get help
Post Reply
nigelb
Level 1
Level 1
Posts: 2
Joined: Mon Aug 31, 2015 4:26 am

openjdk-8 on Linux Mint 17.2

Post by nigelb »

Please could you tell me what is the safest/best way (with step-by-step instructions) to install openjdk-8 as a managed package on Linux Mint 17.2. This version of the distro only has support for openjdk-7 and openjdk-6. Does anyone know whether openjdk-8 will ever be supported in the official Mint 17.2 repos? Thanks.
Ron-N

Re: openjdk-8 on Linux Mint 17.2

Post by Ron-N »

Installing OpenJDK-8:
  • Open a terminal
  • Type the following command (or copy the line and paste it in the terminal using Shift+Ctrl+C):

    Code: Select all

    sudo add-apt-repository ppa:webupd8team/java
  • Follow the instruction given in the terminal
  • Now type the following command:

    Code: Select all

    sudo apt-get update && sudo apt-get install oracle-java8-installer
  • An installation menu will appear, follow the instruction given in that menu
  • After installation check with the following command if OpenJDK-8 is installed:

    Code: Select all

    java -version
  • If the output is the same as below than you have OpenJDK-8 installed:

    Code: Select all

    java version "1.8.0_31"
    Java(TM) SE Runtime Environment (build 1.8.0_31-b13)
    Java HotSpot(TM) 64-Bit Server VM (build 25.31-b07, mixed mode)
nigelb
Level 1
Level 1
Posts: 2
Joined: Mon Aug 31, 2015 4:26 am

Re: openjdk-8 on Linux Mint 17.2

Post by nigelb »

Many thanks for your reply. Can I just clarify that your instructions are for installing openjdk-8 rather than Oracle JDK 8? You refer to installing a package called oracle-java8-installer.
Ron-N

Re: openjdk-8 on Linux Mint 17.2

Post by Ron-N »

nigelb wrote:Many thanks for your reply. Can I just clarify that your instructions are for installing openjdk-8 rather than Oracle JDK 8? You refer to installing a package called oracle-java8-installer.
OpenJDK is from Oracle.
guyr
Level 1
Level 1
Posts: 4
Joined: Mon Aug 20, 2012 7:10 pm

Re: openjdk-8 on Linux Mint 17.2

Post by guyr »

I found this item searching for a way to install OpenJDK 8. For others who may likewise find this thread, the information given here is not correct. Java Hotspot is the Oracle (formerly Sun) Java implementation, and not the OpenJDK version. Here is what OpenJDK prints out:

Code: Select all

java -version
java version "1.7.0_95"
OpenJDK Runtime Environment (IcedTea 2.6.4) (7u95-2.6.4-0ubuntu0.14.04.1)
OpenJDK 64-Bit Server VM (build 24.95-b01, mixed mode)
I found some working instructions here: https://www.reddit.com/r/linuxmint/comm ... a_install/
Dmytro
Level 1
Level 1
Posts: 12
Joined: Wed Nov 27, 2013 7:22 am

Re: openjdk-8 on Linux Mint 17.2

Post by Dmytro »

If you have not found a solution yet. Here it is.
Check the java version you have now:

Code: Select all

java -version
Install OpenJDK 8:

Code: Select all

sudo apt-add-repository ppa:openjdk-r/ppa
sudo apt-get update
sudo apt-get install openjdk-8-jre
Configure default java by choosing the number with java-8-openjdk.

Code: Select all

sudo update-alternatives --config java
Check the version again. It should look something like this:

Code: Select all

openjdk version "1.8.0_72-internal"
OpenJDK Runtime Environment (build 1.8.0_72-internal-b15)
OpenJDK 64-Bit Server VM (build 25.72-b15, mixed mode)
Post Reply

Return to “Software & Applications”