|OpenJDK 11.02 + OpenJFX 11.02 + e(fx)clipse: can't build with ant [message #1804151]
||Tue, 19 March 2019 13:10
| Mabula Haverkamp
Registered: March 2019
I am trying to upgrade my application and my application builds to OpenJDK 11.02 and OpenJFX 11.02 from Oracle JDK 8.
Running my application using OpenJDK 11.02 seems to be perfectly fine at first glance.
I am running into trouble when I try to run my e(fx)clipse ant build scripts to make the application packages for Windows , MacOS and Linux.
I created new basic build scripts from my build.fxbuild.xml.
These won't run as they are, as you are probably aware ? :
[taskdef] Could not load definitions from resource com/sun/javafx/tools/ant/antlib.xml. It could not be found.
In my build script by default is :
These dependencies are obviously missing in OpenJDK 11 since it does not contain JavaFX anymore.
What is the recommended way to get this working again?
- can I simply use JFX from for instance the latest Oracle JDK8 ?
- can I use OpenJFX11, if so, how to properly adjust the build script so ant can work?
I have tried adding JavaFX11 to my workspace and my project. But this is not working.
On windows, with latest eclipse
Eclipse 2018.12 -> windows -> preferences -> JavaFX 11+ SDK
I have added the OpenJFX 11.02 SDK folder
Now when I try to add JavaFX as a library to my project
Properties of project -> Java Build Path -> Libraries -> Add Library -> JavaFX SDK
nothing is shown to choose from which seems odd.
Adding manually the OpenJFX jars from the lib folder is not working as well.
Can you please help and point me in the right direction?
Powered by FUDForum
. Page generated in 0.01680 seconds