How To Install openjfx on Fedora 34

openjfx is Rich client application platform for Java

Introduction

In this tutorial we learn how to install openjfx on Fedora 34.

What is openjfx

JavaFX/OpenJFX is a set of graphics and media APIs that enables Java developers to design, create, test, debug, and deploy rich client applications that operate consistently across diverse platforms. The media module have been removed due to missing dependencies.

We can use yum or dnf to install openjfx on Fedora 34. In this tutorial we discuss both methods but you only need to choose one of method to install openjfx.

Install openjfx on Fedora 34 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

After updating yum database, We can install openjfx using dnf by running the following command:

sudo dnf -y install openjfx

Install openjfx on Fedora 34 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

After updating yum database, We can install openjfx using yum by running the following command:

sudo yum -y install openjfx

How To Uninstall openjfx on Fedora 34

To uninstall only the openjfx package we can use the following command:

sudo dnf remove openjfx

openjfx Package Contents on Fedora 34

/usr/lib/.build-id
/usr/lib/.build-id/0c
/usr/lib/.build-id/0c/3a30c92fb83fcbade99885350ac8c09974e9b4
/usr/lib/.build-id/13
/usr/lib/.build-id/13/4dea63cf5dfbac928e6e7c737877a0638964bb
/usr/lib/.build-id/1d
/usr/lib/.build-id/1d/93230c4781fd3e617211cde6638a58ba9eab2b
/usr/lib/.build-id/28
/usr/lib/.build-id/28/d6a1e087ae52ec2f6e7c66bcb41bac29c272a0
/usr/lib/.build-id/47
/usr/lib/.build-id/47/8ed7dbda775599936ab6ae04ad64878bbf4be2
/usr/lib/.build-id/51
/usr/lib/.build-id/51/66093183d96a517985949d96e3ed18712ca519
/usr/lib/.build-id/86
/usr/lib/.build-id/86/49bdb28d6e8094389c79350fb3f0cc7ec16492
/usr/lib/.build-id/95
/usr/lib/.build-id/95/90255d2b14b23bd9a314fd3820f6a3f2264101
/usr/lib/.build-id/c0
/usr/lib/.build-id/c0/c135c5e06274943933ef5ffeb92ae0b9b91804
/usr/lib/.build-id/c1
/usr/lib/.build-id/c1/9c14cefda81b3e1d12172720710fb82e271aee
/usr/lib/.build-id/e2
/usr/lib/.build-id/e2/6fcabe5f34146d9d62d6cea00ec50fbe1a8776
/usr/lib/.build-id/e8
/usr/lib/.build-id/e8/79e6e8f927bfcee40658bbb8f4501335b23b8e
/usr/lib/jvm/openjfx
/usr/lib/jvm/openjfx/javafx-swt.jar
/usr/lib/jvm/openjfx/javafx.base.jar
/usr/lib/jvm/openjfx/javafx.controls.jar
/usr/lib/jvm/openjfx/javafx.fxml.jar
/usr/lib/jvm/openjfx/javafx.graphics.jar
/usr/lib/jvm/openjfx/javafx.media.jar
/usr/lib/jvm/openjfx/javafx.swing.jar
/usr/lib/jvm/openjfx/javafx.web.jar
/usr/lib/jvm/openjfx/libdecora_sse.so
/usr/lib/jvm/openjfx/libglass.so
/usr/lib/jvm/openjfx/libglassgtk2.so
/usr/lib/jvm/openjfx/libglassgtk3.so
/usr/lib/jvm/openjfx/libjavafx_font.so
/usr/lib/jvm/openjfx/libjavafx_font_freetype.so
/usr/lib/jvm/openjfx/libjavafx_font_pango.so
/usr/lib/jvm/openjfx/libjavafx_iio.so
/usr/lib/jvm/openjfx/libjfxwebkit.so
/usr/lib/jvm/openjfx/libprism_common.so
/usr/lib/jvm/openjfx/libprism_es2.so
/usr/lib/jvm/openjfx/libprism_sw.so
/usr/share/doc/openjfx
/usr/share/doc/openjfx/README
/usr/share/licenses/openjfx
/usr/share/licenses/openjfx/ADDITIONAL_LICENSE_INFO
/usr/share/licenses/openjfx/ASSEMBLY_EXCEPTION
/usr/share/licenses/openjfx/LICENSE
/usr/lib/.build-id
/usr/lib/.build-id/18
/usr/lib/.build-id/18/958126d19ab6b993771787aecfa3fbd69f4014
/usr/lib/.build-id/21
/usr/lib/.build-id/21/568884811ee0e1bf5e283a90e27c577a4ffbea
/usr/lib/.build-id/22
/usr/lib/.build-id/22/7e6a14f28c442f750ec0011def6994d084bf02
/usr/lib/.build-id/2a
/usr/lib/.build-id/2a/d6812c44f1c3f5c5cd91f1fc98f7b6f1471d7e
/usr/lib/.build-id/4f
/usr/lib/.build-id/4f/23129eb025341d5165df37f239bb1b79eabeef
/usr/lib/.build-id/98
/usr/lib/.build-id/98/e8474594cb35863fd89262b768fefa3162e690
/usr/lib/.build-id/a2
/usr/lib/.build-id/a2/50a47f150b02a5eb568926c4c3eb1101ef3381
/usr/lib/.build-id/c7
/usr/lib/.build-id/c7/dcd663e38adaac7a2d8d137c46f337ab5543cf
/usr/lib/.build-id/e6
/usr/lib/.build-id/e6/010f9c606facd1495fb823e9e767752537712b
/usr/lib/.build-id/e9
/usr/lib/.build-id/e9/6114966349fb31f4da5a2db0d1a0e7b727cbda
/usr/lib/.build-id/f5
/usr/lib/.build-id/f5/c720f73582a2bd28ad226ea45b81bcf7ecdcb7
/usr/lib/.build-id/fd
/usr/lib/.build-id/fd/03a0eb4a1052039521b6055cb751da375c586b
/usr/lib/jvm/openjfx
/usr/lib/jvm/openjfx/javafx-swt.jar
/usr/lib/jvm/openjfx/javafx.base.jar
/usr/lib/jvm/openjfx/javafx.controls.jar
/usr/lib/jvm/openjfx/javafx.fxml.jar
/usr/lib/jvm/openjfx/javafx.graphics.jar
/usr/lib/jvm/openjfx/javafx.media.jar
/usr/lib/jvm/openjfx/javafx.swing.jar
/usr/lib/jvm/openjfx/javafx.web.jar
/usr/lib/jvm/openjfx/libdecora_sse.so
/usr/lib/jvm/openjfx/libglass.so
/usr/lib/jvm/openjfx/libglassgtk2.so
/usr/lib/jvm/openjfx/libglassgtk3.so
/usr/lib/jvm/openjfx/libjavafx_font.so
/usr/lib/jvm/openjfx/libjavafx_font_freetype.so
/usr/lib/jvm/openjfx/libjavafx_font_pango.so
/usr/lib/jvm/openjfx/libjavafx_iio.so
/usr/lib/jvm/openjfx/libjfxwebkit.so
/usr/lib/jvm/openjfx/libprism_common.so
/usr/lib/jvm/openjfx/libprism_es2.so
/usr/lib/jvm/openjfx/libprism_sw.so
/usr/share/doc/openjfx
/usr/share/doc/openjfx/README
/usr/share/licenses/openjfx
/usr/share/licenses/openjfx/ADDITIONAL_LICENSE_INFO
/usr/share/licenses/openjfx/ASSEMBLY_EXCEPTION
/usr/share/licenses/openjfx/LICENSE

References

Summary

In this tutorial we learn how to install openjfx on Fedora 34 using yum and dnf.