论坛首页 Web前端技术论坛

javafx project 中build.xml run的错误

浏览 1463 次
精华帖 (0) :: 良好帖 (0) :: 新手帖 (0) :: 隐藏帖 (0)
作者 正文
   发表时间:2014-10-02  
Buildfile: F:\eclipseIDE\WorkSpace\test\build\build.xml
setup-staging-area:
   [delete] Deleting directory F:\eclipseIDE\WorkSpace\test\build\externalLibs
   [delete] Deleting directory F:\eclipseIDE\WorkSpace\test\build\project
   [delete] Deleting directory F:\eclipseIDE\WorkSpace\test\build\projectRefs
    [mkdir] Created dir: F:\eclipseIDE\WorkSpace\test\build\externalLibs
     [copy] Copying 1 file to F:\eclipseIDE\WorkSpace\test\build\externalLibs
     [copy] Copying 1 file to F:\eclipseIDE\WorkSpace\test\build\externalLibs
     [copy] Copying 1 file to F:\eclipseIDE\WorkSpace\test\build\externalLibs
    [mkdir] Created dir: F:\eclipseIDE\WorkSpace\test\build\project
     [copy] Copying 233 files to F:\eclipseIDE\WorkSpace\test\build\project
    [mkdir] Created dir: F:\eclipseIDE\WorkSpace\test\build\projectRefs
do-compile:
   [delete] Deleting directory F:\eclipseIDE\WorkSpace\test\build\build
    [mkdir] Created dir: F:\eclipseIDE\WorkSpace\test\build\build\src
    [mkdir] Created dir: F:\eclipseIDE\WorkSpace\test\build\build\libs
    [mkdir] Created dir: F:\eclipseIDE\WorkSpace\test\build\build\classes
     [copy] Copying 3 files to F:\eclipseIDE\WorkSpace\test\build\build\libs
     [copy] Copying 233 files to F:\eclipseIDE\WorkSpace\test\build\build\src
    [javac] Compiling 97 source files to F:\eclipseIDE\WorkSpace\test\build\build\classes
    [javac] F:\eclipseIDE\WorkSpace\test\build\build\src\net\tinyos\mviz\MessageInput.java:113: 警告: 最后一个参数使用了不准确的变量类型的 varargs 方法的非 varargs 调用;
    [javac]      Integer result = (Integer)method.invoke(message, null);
    [javac]                                                       ^
    [javac]   对于 varargs 调用, 应使用 Object
    [javac]   对于非 varargs 调用, 应使用 Object[], 这样也可以抑制此警告
    [javac] F:\eclipseIDE\WorkSpace\test\build\build\src\net\tinyos\mviz\MessageInput.java:126: 警告: 最后一个参数使用了不准确的变量类型的 varargs 方法的非 varargs 调用;
    [javac]      Integer result = (Integer)method.invoke(message, null);
    [javac]                                                       ^
    [javac]   对于 varargs 调用, 应使用 Object
    [javac]   对于非 varargs 调用, 应使用 Object[], 这样也可以抑制此警告
    [javac] 注: 某些输入文件使用或覆盖了已过时的 API。
    [javac] 注: 有关详细信息, 请使用 -Xlint:deprecation 重新编译。
    [javac] 注: 某些输入文件使用了未经检查或不安全的操作。
    [javac] 注: 有关详细信息, 请使用 -Xlint:unchecked 重新编译。
    [javac] 2 个警告
     [copy] Copying 62 files to F:\eclipseIDE\WorkSpace\test\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 3 files to F:\eclipseIDE\WorkSpace\test\build\dist\libs

BUILD FAILED
F:\eclipseIDE\WorkSpace\test\build\build.xml:102: 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
论坛首页 Web前端技术版

跳转论坛:
Global site tag (gtag.js) - Google Analytics