How to install javaFX for java 21?

Greetings! Despite having two years of experience with Manjaro, I’m a newcomer to this forum. Recently, I attempted to install the most recent version of JavaFX using the command sudo pacman -S java-openjfx. However, the command installed JavaFX 17, and I was hoping to obtain a different version. Could you kindly guide me on how to address this?

Appreciate your assistance in advance!

Well…
https://packages.manjaro.org/?query=Openjfx
…if you need a newer version, you are on your own.

1 Like

The jfx in the repo is 17 - that is how it is.

Being a Manjaro user for as long as two years - you know the caveats of custom scripts from AUR.

  • switch to Manjaro unstable branch (on par with Arch)
  • do not sync system and custom AUR scripts in the same transaction

Use a helper script to inform of updates to AUR script.

jfx 21 is a custom script found in AUR

https://aur.archlinux.org/packages?O=0&K=jfx

1 Like

I’ve discovered a solution to the issue. Simply download the required JavaFX version, extract it, and in your IDE, specify the location of the libraries. In my case, I use IntelliJ, and I successfully followed the official tutorial of javaFX.

Alright, thank you!

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