Help with Setting Up JavaFX

Hello everyone, I hope you’re doing well. I need to use JavaFX for a project, but I am having trouble figuring out how to properly install and use it. My project is currently in IntelliJ IDEA by JetBrains.

I want to clarify that I’ve seen a few similar forum threads where people used pacman to install java-openjfx. However, on my system, pacman can’t find the package, and using yay installs it only as shared libraries (.so files) rather than standard JAR files. As a result, I can’t properly add this installed library to my project in IntelliJ (technically I can add it, but IntelliJ still doesn’t recognize it).

Could you please advise whether I am missing something, or if JavaFX needs to be set up in a different way for IntelliJ?

Thank you in advance for your help!

That won’t have been in Manjaro, because that’s an AUR package, and pacman does not access the AUR. pamac however can.

There are several related packages in the AUR, but I do not know what they contain. The following command should either way install the base of what you need… :backhand_index_pointing_down:

pamac build java-openjfx-bin

This is a precompiled package, so it won’t take long to install. But perhaps you would also want to look at the sources and the documentation… :backhand_index_pointing_down:

pamac build java-openjfx-src java-openjfx-doc
2 Likes

FYI, that’s been out of date for months. It’s still at 24.0.2 while the current version is 27.4. The java-openjfx / java-openjfx-src packages that build from source are up to date.

1 Like

In that case… :backhand_index_pointing_down:

pamac build java-openjfx java-openjfx-src java-openjfx-doc
1 Like

A lot depends on how you are setting up the project - using a build system like gradle or maven, or doing it some other way. If it was me, I’d start with this openjfx page and either download the SDK or set up the build system correctly.

1 Like

Thank you for help, I resolved this problem by installing

yay -S openjdk-liberica21-full-bin

and then configured my sdk in File → Project Structure → Project , where I simply choose my installed liberica-21

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