What is Java FX and how do I install it?

I installed a program that apparently needs java fx to run. When I try to run it I get the error: “Please install Java FX for your Java version (1.8.0_292)” I’ve looked everywhere but I can’t figure it out. In terminal I checked my java version in terminal with
archlinux-java status output
and it said I have two versions: java-15-openjdk and java-8-openjdk. The java 8 was set to default so I tried switching it to 15 and still got the same error (wasn’t too surprised) except it said my java version was 15.0.2. I also tried installing java-11-jdk and the error said my version was 11.0.11. I was hoping that java fx would be included in that installation, but it didn’t seem to be.

I tried installing java fx through terminal, but I couldn’t figure out how, so I checked online. I found the gluonhq website under Home>Products>JavaFX (sorry, I can’t include links yet) where it has download links for javafx 11, 16 and 17. I downloaded the version 11 sdk, but I have no idea what to do with it. It’s just a zip folder with some .jar files and some other odd files. I am very much lost, can someone please help me?

Hi @falconflurry and welcome to the forum

For (Open) Java FX 6

sudo pacman -S java8-openjfx

For (Open) Java FX 15

sudo pacman -S java-openjfx


Side note, I’ll remove the cinnamon tag since the DE is not related to the problem


@Lolix Thanks for the reply,

I was pretty sure I already tried installing both of those, but I tried it again. Terminal said it was already installed, but I reinstalled it and switched back to java 15 and the same error occurred. Here is the output that I got from terminal:

warning: java-openjfx-15.0.1.u1-1 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...

Packages (1) java-openjfx-15.0.1.u1-1

Total Installed Size:  136.10 MiB
Net Upgrade Size:        0.00 MiB

:: Proceed with installation? [Y/n] y
(1/1) checking keys in keyring                     [######################] 100%
(1/1) checking package integrity                   [######################] 100%
(1/1) loading package files                        [######################] 100%
(1/1) checking for file conflicts                  [######################] 100%
(1/1) checking available disk space                [######################] 100%
:: Processing package changes...
(1/1) reinstalling java-openjfx                    [######################] 100%
:: Running post-transaction hooks...
(1/1) Arming ConditionNeedsUpdate...

You need to set java-8-openjdk as default and install java8-openjfx.

@Yochanan That did it, thank you! I can’t believe it was that simple. Can I ask though, just for my own education, why does it work on java 8 and not on java 15?

Don’t know since you didn’t tell us what program you’re using. :wink:

The program is called mcaselector, but I meant more what made you think it needed to be on java 8 (given that you didn’t know what it was for)

Because of the message you received:

Ah ok, thanks

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.