在Netbean中构建javafx应用程序时出错(manifest.custom.codebase属性)

时间:2015-03-18 05:49:07

标签: java netbeans javafx

每当我尝试在Netbeans中构建项目时,我都会遇到以下错误:

ant -f /Users/user/Documents/NETBEANS/MICO_L jfx-build
init:
Deleting: /Users/user/Documents/NETBEANS/MICO_L/build/built-jar.properties
deps-jar:
Updating property file: /Users/user/Documents/NETBEANS/MICO_L/build/built-jar.properties
compile:
Copied 1 empty directory to 1 empty directory under /Users/user/Documents/NETBEANS/MICO_L/dist/lib
Detected JavaFX Ant API version 1.3
Launching <fx:jar> task from /Library/Java/JavaVirtualMachines/jdk1.8.0_31.jdk/Contents/Home/jre/../lib/ant-javafx.jar
Warning: From JDK7u25 the Codebase manifest attribute should be used to restrict JAR repurposing.
         Please set manifest.custom.codebase property to override the current default non-secure value '*'.
/Users/user/Documents/NETBEANS/MICO_L/nbproject/jfx-impl.xml:3438: The following error occurred while executing this line:
/Users/user/Documents/NETBEANS/MICO_L/nbproject/jfx-impl.xml:1465: The following error occurred while executing this line:
/Users/user/Documents/NETBEANS/MICO_L/nbproject/jfx-impl.xml:3092: The following error occurred while executing this line:
/Users/user/Documents/NETBEANS/MICO_L/nbproject/jfx-impl.xml:1636: All filesets are empty.
BUILD FAILED (total time: 1 second)

这是什么以及如何解决?

1 个答案:

答案 0 :(得分:2)

这是旧的,但我所要做的只是重建项目。在netbeans构建文件或其他东西搞砸了。我希望这会有所帮助。