Skip to content
Advertisement

Building JavaFX Projects with JDK 11.0.2 and Eclipse?

I’ve spent too much time trying to find how to do this with. Tips for setting up a dev environment are what I am asking for, however I will start with what I tried so far.

As I understand JavaFX was separated from the JDK after JDK 8, however, for an R&D project, I need to create JavaFX applications that can be built and compiled in Java 11. Normally installing the e(fx)clipse plugins into Eclipse will not work unless a Java 8 installation is pointed to.

So, I have been following this guide: https://gist.github.com/stevenliebregt/bc62a382fc43064136b662ee62172ab3

JavaFX 11 is on LTS from Gluon, it seems, meaning I’d have to pay at least $900 to get it.

So instead, I tried building OpenJFX using following the instructions at this link: https://wiki.openjdk.org/display/OpenJFX/Building+OpenJFX

When I start the build with Gradle, it fails because the minimum supported version for Java to build this is apparently 17.

Any suggestions for building JavaFX projects with JDK 11 is greatly appreciated.

Advertisement

Answer

Thanks all, for the good information. I found that the best way to handle this way to build in IntelliJ instead. I can build and run JavaFX 18 easily with JDK 11.

User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement