How to install Java on Manjaro Linux - LinuxConfig.org

Many developers and programmers choose Manjaro because it's one of the most user-friendly and feature-rich Linux distributions. In this guide, we go over the steps to install the Java Development Kit on Manjaro Linux. We'll show you how to install both the OpenJDK package (which is free and GPL-licensed) as well as Oracle Java SE Development Kit.

Arch Linux and Manjaro only officially support the OpenJDK, as that is the non-proprietary version. However, the Oracle package can be installed from the AUR, as you'll see shortly.


This is a companion discussion topic for the original entry at https://linuxconfig.org/how-to-install-java-on-manjaro-linux

Hello there. I would like to know how to use the installed JRE that you have showed us and help us open downloaded .Jar programs like for example Optifine for minecraft to install Optifine.

I’ve tried your tutorial but was unable to open Optine.X.X.Jar file and have it install to the .minecraft folder. Thanks in advance!

Hi RandomnessRobin,

Welcome to our forums.

Please share with us the output of the following command on your system:

$ java -version

This should tell us what version of java you are using, and if the environmental variables are set correctly.