Installing OpenJDK8 for Ubuntu/Debian

For those who may be interested there are instructions on how to install OpenJDK8 Java for Ubuntu 14.04, Ubuntu 12.04, and Linux Mint 17 users.

As there is no official repository here’s how to install it from a PPA repository.

http://pastebin.com/embed_js.php?i=qgacKHT6">

Enjoy

1 Like

Mind posting this here directly?
I even formatted it for you: :smile:

OpenJDK Java 8 has been made into official Ubuntu repositories for 14.10 Utopic and higher. For Ubuntu 14.04, Ubuntu 12.04, and Linux Mint 17 users here’s how to install it from PPA. As a workaround, you can install OpenJDK 8 from a PPA repository:

Open terminal from the Dash or by pressing Ctrl+Alt+T. When it opens, run the command below to add PPA:

sudo add-apt-repository ppa:openjdk-r/ppa

After that, update system package cache and install OpenJDK 8:

sudo apt-get update
sudo apt-get install openjdk-8-jdk

If you have more than one Java versions installed on your system. Run below command set the default Java:

sudo update-alternatives --config java

Type in a number to select a Java version.
Then set default Java Compiler by running:

sudo update-alternatives --config javac

Finally check out current Java version by running:

java -version

It outputs something like this:

openjdk version "1.8.0_40-internal"
OpenJDK Runtime Environment (build 1.8.0_40-internal-b04)
OpenJDK 64-Bit Server VM (build 25.40-b08, mixed mode)

I didn’t want to clog up the forum - even got reprimanded for that once :disappointed_relieved:

And since you’re one of the bosses now - congrats by the way - I don’t mind at all

PS I don’t have much choice in the matter anyway, do I? :stuck_out_tongue:

Nah. posting such a helpful thing here is fine, at least for me. If it’s ok for you i’ll just leave the content in my post and were done. Thanks for sharing it! Much appreciated! :smile:

btw:
i’m just a little minion writing some docs, there are way more important persons on the project :wink: