2 c0ol jie c0ol_jie 于 2016.03.18 15:21 提问

JavaFX 部署 运行出错

刚学JavaFX 跟着教程 一步一步往下做, 到部署的时候
右键bulid.xml文件, Run as ==> Ant build 报错

谁知道可能是什么原因吗?

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 3 files to D:\MyWork\git\git-demo\pack_fx\build\dist\libs

BUILD FAILED
D:\MyWork\git\git-demo\pack_fx\build\build.xml:116: 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 / declarations have taken place.
No types or tasks have been defined in this namespace yet

图片说明

1个回答

devmiao
devmiao   Ds   Rxr 2016.03.18 22:45
Csdn user default icon
上传中...
上传图片
插入图片
准确详细的回答,更有利于被提问者采纳,从而获得C币。复制、灌水、广告等回答会被删除,是时候展现真正的技术了!