How to install Java on OpenSuse 15 Leap?

Windows Articles

Is ReactOS a real alternative to Windows?

Oh! The eternal struggle of computer operating systems. Windows vs. GNU/Linux and Mac as a distant spectator However, there are also interesting...

How to install Firebird on Ubuntu 20.04/ 18.04?

Database management systems are sufficient for many kinds of projects. Of course, they abound with MySQL / MariaDB or PostgreSQL popular but...

How to disable Firewall in Windows Server 2019/2016

Hello! The Firewall performs an essential security task on any version of Windows Server. In fact, it has the mission of preventing...

How to install ArangoDB on Ubuntu 20.04?

In this post, you will learn how to install ArangoDB on Ubuntu 20.04 So let's go for it What...

How to create GPO in Windows Server 2019.

Hi, in today's post we will be looking at GPOs in Windows Server 2019. The Group Police Object are a set of...
Mel Khamlichi
Mel Khamlichihttp://www.osradar.com
Founder of Osradar, from Amsterdam Netherlands

Recently, Oracle released a new version of Java, the well-known software platform that includes its development components and virtual machine. Inside the development kit, we have a new version of the virtual machine and an update of the libraries that compose it.

If at this point in the game, you don’t know what Java is, we can tell you that it is a High-Level, Object Oriented, Multi-Purpose Programming Language. It can be used in PC, mobile and other technologies.It is highly popular and surely, Java is present in the construction of the applications we use every day.

Downloading the necessary packages

The best way to get java is to go to the Oracle downloads section.

1.- Downloading Java
1.- Downloading Java

In the image we can see that there are 3 downloads available, one that is the JDK and the other that is JRE. So, which one should we download? Only JDK and JRE.

We will briefly explain, the JDK is the Java Development Kit, that is, the package provides all the necessary tools to develop Java applications. As stated above, these applications can be focused on the desktop, the web or mobile phones.

In contrast to the JRE, are the set of utilities that are required to run Java applications, therefore, in this package is the Java Virtual Machine. The JVM is the program that executes the Java code previously compiled (bytecode) while the standard class libraries are the ones that implement the Java API.

Then we proceed to download both packages. Let’s get the JDK first. In the following image we must choose the .rpm package that is suitable for OpenSUSE, it is also suitable for Fedora. Once the license agreement is accepted we can start the download.

2.- Downloading JDK
2.- Downloading JDK

In the following image we must choose the .rpm package that is suitable for OpenSUSE, it is also suitable for Fedora. Once the license agreement is accepted we can start the download.

We’re doing the same thing with the JRE.

3.- Downloading JRE
3.- Downloading JRE

Installing the downloaded packages

An OpenSUSE installation contains the community version of Java that we must remove in order to use the official version without problems.

           sudo zypper remove java-10-openjdk-headless java-10-openjdk

4.- Removing openjdk
4.- Removing openjdk

Installing .rpm packages is really easy, and we can do it from the terminal to make the process very fast.

          sudo rpm -i file_path.rpm

In my case:

          sudo rpm -i Downloads/jdk-10.0.1_linux-x64_bin.rpm

 

And then:

          sudo updates-alternatives –config java

5.- Configuring java
5.- Configuring java

Finally, we test the installation result with the commands:

java –version

          javac –version

6.-Checking the installation
6.-Checking the installation

And as we can see, the result for the terminal is the installed version, indicating that the process was correct.

Installing Java in a GNU/LINUX distribution is not as complicated as it used to be, thanks to the availability of packages in its download section. It is a great programming language of high level, quite well known and with a lot of support behind it.

More articles

4 COMMENTS

  1. Not working for me on installing. In a new (not upgraded) OpenSUSE 15 installation, when installing, it ended with:
    …..
    ng’: No existe el fichero o el directorio
    cp: no se puede efectuar `stat’ sobre ‘/usr/java/jdk-10.0.2/lib/desktop/icons/hicolor/48×48/apps/sun-javaws.png’: No existe el fichero o el directorio
    update-alternatives: utilizando /usr/java/jdk-10.0.2/bin/java para proveer /usr/bin/java (java) en modo automático
    update-alternatives: error: la alternativa appletviewer no puede una esclava de javac: es ya una esclava de java
    advertencia:%post(jdk-10.0.2-2000:10.0.2-ga.x86_64): macro de ejecución de guión fallido, estado de terminación 2

    so, “updates-alternatives” doesn’t exist and “javac –version” shows:
    javac: invalid flag: –version
    Usage: javac
    use –help for a list of possible options

    and “java –version” shows:
    Error: no se ha encontrado o cargado la clase principal –version
    Causado por: java.lang.ClassNotFoundException: –version

  2. Definitively, is NOT WORKING. Despite I installed JRE I had forgotten, “sudo updates-alternatives –config java” doesn’t work. Doesn’t exist.

    Any suggestion?

    Thank you

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest article

Is ReactOS a real alternative to Windows?

Oh! The eternal struggle of computer operating systems. Windows vs. GNU/Linux and Mac as a distant spectator However, there are also interesting...

How to install Firebird on Ubuntu 20.04/ 18.04?

Database management systems are sufficient for many kinds of projects. Of course, they abound with MySQL / MariaDB or PostgreSQL popular but...

How to disable Firewall in Windows Server 2019/2016

Hello! The Firewall performs an essential security task on any version of Windows Server. In fact, it has the mission of preventing...

How to install ArangoDB on Ubuntu 20.04?

In this post, you will learn how to install ArangoDB on Ubuntu 20.04 So let's go for it What...

How to create GPO in Windows Server 2019.

Hi, in today's post we will be looking at GPOs in Windows Server 2019. The Group Police Object are a set of...