Home > manjaro > [manjaro] install Oracle Java JDK

[manjaro] install Oracle Java JDK

Problem
You want to install Oracle Java JDK on Manjaro and you want it to be the default.

Solution

$ yaourt jdk

It will produce a list of available Java environments. I chose “aur/jdk 8u25-1 Oracle Java Development Kit”. Type in its number and simply follow the instructions.

At the end you can set this newly installed Java JDK to be the default. In my case it looked like this:

$ archlinux-java status
Available Java environments:
  java-7-openjdk/jre (default)
  java-8-jdk
$ sudo archlinux-java set java-8-jdk
$ archlinux-java status
Available Java environments:
  java-7-openjdk/jre
  java-8-jdk (default)

Verify in a new terminal if it’s set correctly: “which java“, “which javac“, “java -version“, “javac -version“.

Categories: manjaro Tags: , , ,
  1. April 29, 2015 at 15:16

    Sweet baby panda, manjaro is the the best. On 0.8.12 you won’t even have to set it default. You go to add/remove program, type in jdk and install and it does everything for you. Also, thanks a lot man, I was trying to update-alternatives java on manjaro and when it wasn’t working I thought, welp, I would have to spend the whole night trying to make this work. You and manjaro both saved me a whole bunch of time.

  1. No trackbacks yet.

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: