adplus-dvertising
11.6 C
Amsterdam
angeloma
Senior Writer and partner

Install Java on Fedora 34 / 33

Hello, friends. We know that Java is one of the most popular programming languages and now it’s version 15. So in this post, you’ll learn how to install Java on Fedora 34 / 33

Java is one of the preferred languages by many developers but it is also necessary to run other very important software. In this sense, Oracle from time to time releases a new version that includes good news.

So, if you are a developer and want to try Java on Fedora 34 / 33, this post will help you with that.

Installing Java on Fedora 34 / 33

Because Java is so popular, it also has support for Fedora 34 / 33. This can be done from the OpenJDK project which is a free implementation of Java.

From Java, it is worth distinguishing between JDK and JRE. The JDK contains all the libraries and compilers for developing Java applications. In the case of the JRE, it contains the runtime and what is necessary to run these applications.

In Fedora 34 / 33 we have 3 versions of JAva, 1.8 (JAva 8) which is a mature stable version and on which many applications are based; the latest LTS OpenJDK 11 which is the currently recommended version; and finally it is possible to install the latest stable version which is 15.

So, open a terminal and update the distribution:

sudo dnf update

To download OpenJDK 8 execute this pair of commands:

sudo dnf install java-1.8.0-openjdk-devel.x86_64 java-1.8.0-openjdk.x86_64

As I said before, the recommended Java version is version 11, to install it, run it:

sudo dnf install java-11-openjdk-devel.x86_64 java-11-openjdk.x86_64

And for Java 15, run:

sudo dnf install java-latest-openjdk-devel.x86_64 java-latest-openjdk.x86_64

When you finish the installation of one of them, you can consult the version installed:

java --version
openjdk 11.0.11 2021-04-20
 OpenJDK Runtime Environment 18.9 (build 11.0.11+9)
 OpenJDK 64-Bit Server VM 18.9 (build 11.0.11+9, mixed mode, sharing)

So, Java is ready to be used for both development and program execution.

Conclusion

Java is a fairly popular platform and this makes it necessary for many Fedora developers and users to run or serve applications of this type. Today you have learned how to install it without problems.

- Advertisement -

2 COMMENTS

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Donate to Osradar

Latest article