Skip to main content



      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 12:50 Go to next message
Eclipse UserFriend
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 15:19 Go to previous messageGo to next message
Eclipse UserFriend
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 01:27 Go to previous messageGo to next message
Eclipse UserFriend
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 04:42 Go to previous message
Eclipse UserFriend
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: Sat Apr 19 14:35:15 EDT 2025

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

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

Back to the top