Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » e(fx)clipse » OpenJDK 11.02 + OpenJFX 11.02 + e(fx)clipse: can't build with ant(I build my application packages with e(fx)clipse and I am trying to upgrade to OpenJDK11 with OpenJFX11 from OracleJDK 8. I can no longer build with ant. )
OpenJDK 11.02 + OpenJFX 11.02 + e(fx)clipse: can't build with ant [message #1804151] Tue, 19 March 2019 13:10 Go to next message
Mabula Haverkamp is currently offline Mabula HaverkampFriend
Messages: 2
Registered: March 2019
Junior Member
Hi all,

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 :

<path id="fxant">
<filelist>
<file name="${java.home}\..\lib\ant-javafx.jar"/>
<file name="${java.home}\lib\jfxrt.jar"/>
</filelist>
</path>

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?

Kind regards,
Mabula Haverkamp
Re: OpenJDK 11.02 + OpenJFX 11.02 + e(fx)clipse: can't build with ant [message #1804283 is a reply to message #1804151] Thu, 21 March 2019 18:00 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
The java-packager has been removed from the JDK and is rewritten by Oracle in a extra JEP. There's a backport available from Gluon but I've never tried to run it.
Re: OpenJDK 11.02 + OpenJFX 11.02 + e(fx)clipse: can't build with ant [message #1804285 is a reply to message #1804283] Thu, 21 March 2019 18:45 Go to previous message
Mabula Haverkamp is currently offline Mabula HaverkampFriend
Messages: 2
Registered: March 2019
Junior Member
Hi Thomas,

Thank you very much for your response.

Yes, I understand now that the old e(fx)clipse build scripts have no use when using both OpenJDK 11 and Open JFX11.

And also that new packaging needs to be done with the new JPackage to which you refer (JEP 343)
https://jdk.java.net/jpackage/
The download there is JDK13 with jpackage.

I found the gluon backport for JDK11 here:
https://github.com/johanvos/openjdk-mobile11/tree/packager
https://mail.openjdk.java.net/pipermail/openjfx-dev/2018-September/022500.html

So the build process is now a bit more complicated but I think at least I know now what I need to do to create native installers for my product based on OpenJDK 11 and Open JFX11:

1) create the jar of my java code and folder with external libraries
2) obfuscate the contents of the jar if needed/wanted
3) create native image with the new jpackage
4) create native installer with either jpackage or a tool like innosetup on windows.

If anyone has anything to contibute to this, please let me know.

Kind regards,
Mabula

Previous Topic:css block commenting not working
Next Topic:Link to Site_Assembly.zip for EFX 3.5.0
Goto Forum:
  


Current Time: Fri Dec 13 21:30:50 GMT 2024

Powered by FUDForum. Page generated in 0.05216 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top