Ошибка при запуске build.xml - не удалось загрузить определения из ресурса com / sun / javafx / tools / ant / antlib.xml - PullRequest
0 голосов
/ 09 декабря 2018

Я пытаюсь запустить файл build.xml для моего приложения JavaFX в Eclipse, и я получаю эту ошибку:

     [copy] Copying 15 files to /Users/Joseph/eclipse-workspace/CheckMyDigitalFootprint/build/build/src
    [javac] Compiling 12 source files to /Users/Joseph/eclipse-workspace/CheckMyDigitalFootprint/build/build/classes
     [copy] Copying 3 files to /Users/Joseph/eclipse-workspace/CheckMyDigitalFootprint/build/build/classes
init-fx-tasks:
  [taskdef] Could not load definitions from resource com/sun/javafx/tools/ant/antlib.xml. It could not be found.
do-deploy:
     [copy] Copying 77 files to /Users/Joseph/eclipse-workspace/CheckMyDigitalFootprint/build/dist/libs

BUILD FAILED
/Users/Joseph/eclipse-workspace/CheckMyDigitalFootprint/build/build.xml:577: 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

Раздел кода в build.xml, который относится к:

    <fx:resources id="appRes">
        <fx:fileset dir="dist" includes="CheckMyDigitalFootprint.jar"/>
        <fx:fileset dir="dist" includes="libs/*"/>
    </fx:resources>

А вот так выглядит моя структура каталогов:

enter image description here

Есть идеи, как это исправить?

...