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?
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...
@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?