Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » e(fx)clipse » How to compile a Java FX project(Unable to compile a JavaFX project)
How to compile a Java FX project [message #1835195] Thu, 26 November 2020 17:50 Go to next message
Edwin Siebrasse is currently offline Edwin SiebrasseFriend
Messages: 3
Registered: November 2020
Junior Member
Hi All,

I have create a JavaFX project that works fine. Now I would like to compile it and use it in others systems.

I'm following the steps:

1) open the build.fxbuild file
2) fill in the nessecary information
3) select application main file.
4) press ant build.xml and run

An error occures. That is below

Does anybody know how to fix this?

BUILD FAILED
C:\eclipse\eclipse-workspace\HelloFX\build\build.xml:144: Problem: failed to create task or type javafx:com.sun.javafx.tools.ant:resources
Cause: The name is undefined.
Action: Check the spelling.
Action: Check that any custom tasks/types have been declared.
Action: Check that any <presetdef>/<macrodef> declarations have taken place.
No types or tasks have been defined in this namespace yet


Re: How to compile a Java FX project [message #1835371 is a reply to message #1835195] Tue, 01 December 2020 20:19 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
so what version of java for everything above Java8 please - see https://openjfx.io/openjfx-docs/
Re: How to compile a Java FX project [message #1835382 is a reply to message #1835371] Wed, 02 December 2020 06:27 Go to previous messageGo to next message
Edwin Siebrasse is currently offline Edwin SiebrasseFriend
Messages: 3
Registered: November 2020
Junior Member
I'm using java version 15.0.1
Re: How to compile a Java FX project [message #1836745 is a reply to message #1835382] Wed, 13 January 2021 09:42 Go to previous message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
well the build stuff has completely change - I would propose you bootstrap using Maven/Gradle
Previous Topic:Javafx with tycho and simple maven project
Next Topic:java.lang.ExceptionInInitializerError at javafx.scene.web.WebEngine.<clinit>(WebEngine.java:3
Goto Forum:
  


Current Time: Thu Apr 25 10:51:25 GMT 2024

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

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

Back to the top