我正在开发一个正在开发的Netbeans Javafx项目。在停止了几个月的项目工作后,我回到它,运行一个构建,但" dist"文件夹是空的。即使在干净的构建之后,dist文件夹也会变空,没有罐子。
构建输出日志显示:
ant -f "C:\\Users\\HP\\Documents\\MEMMCOL
Documents\\Codes\\Netbeans\\MMXExplorerPlus" jfx-rebuild
init:
deps-clean:
Updating property file: C:\Users\HP\Documents\MEMMCOL Documents\Codes\Netbeans\MMXExplorerPlus\build\built-clean.properties
Deleting directory C:\Users\HP\Documents\MEMMCOL Documents\Codes\Netbeans\MMXExplorerPlus\build
clean:
init:
deps-jar:
Created dir: C:\Users\HP\Documents\MEMMCOL Documents\Codes\Netbeans\MMXExplorerPlus\build
Updating property file: C:\Users\HP\Documents\MEMMCOL Documents\Codes\Netbeans\MMXExplorerPlus\build\built-jar.properties
Created dir: C:\Users\HP\Documents\MEMMCOL Documents\Codes\Netbeans\MMXExplorerPlus\build\classes
Created dir: C:\Users\HP\Documents\MEMMCOL Documents\Codes\Netbeans\MMXExplorerPlus\build\classes\META-INF
Copying 1 file to C:\Users\HP\Documents\MEMMCOL Documents\Codes\Netbeans\MMXExplorerPlus\build\classes\META-INF
Created dir: C:\Users\HP\Documents\MEMMCOL Documents\Codes\Netbeans\MMXExplorerPlus\build\empty
Created dir: C:\Users\HP\Documents\MEMMCOL Documents\Codes\Netbeans\MMXExplorerPlus\build\generated-sources\ap-source-output
Compiling 49 source files to C:\Users\HP\Documents\MEMMCOL Documents\Codes\Netbeans\MMXExplorerPlus\build\classes
warning: The following options were not recognized by any processor: '[eclipselink.canonicalmodel.use_static_factory]'
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Copying 27 files to C:\Users\HP\Documents\MEMMCOL Documents\Codes\Netbeans\MMXExplorerPlus\build\classes
compile:
Created dir: C:\Users\HP\Documents\MEMMCOL Documents\Codes\Netbeans\MMXExplorerPlus\dist
Updating property file: C:\Users\HP\Documents\MEMMCOL Documents\Codes\Netbeans\MMXExplorerPlus\project.properties
jar:
jfx-rebuild:
BUILD SUCCESSFUL (total time: 4 seconds)
然后当我点击运行按钮时,我看到了:
ant -f "C:\\Users\\HP\\Documents\\MEMMCOL Documents\\Codes\\Netbeans\\MMXExplorerPlus" jfxsa-run
init:
Deleting: C:\Users\HP\Documents\MEMMCOL Documents\Codes\Netbeans\MMXExplorerPlus\build\built-jar.properties
deps-jar:
Updating property file: C:\Users\HP\Documents\MEMMCOL Documents\Codes\Netbeans\MMXExplorerPlus\build\built-jar.properties
compile:
Updating property file: C:\Users\HP\Documents\MEMMCOL Documents\Codes\Netbeans\MMXExplorerPlus\project.properties
jar:
Copied 1 empty directory to 1 empty directory under C:\Users\HP\Documents\MEMMCOL Documents\Codes\Netbeans\MMXExplorerPlus\dist\run1394106374
jfx-project-run:
Executing C:\Users\HP\Documents\MEMMCOL Documents\Codes\Netbeans\MMXExplorerPlus\dist\run1394106374\MMXExplorerPlus.jar using platform C:\Program Files\Java\jdk1.8.0_25\jre/bin/java
Error: Unable to access jarfile C:\Users\HP\Documents\MEMMCOL Documents\Codes\Netbeans\MMXExplorerPlus\dist\run1394106374\MMXExplorerPlus.jar
Java Result: 1
Deleting directory C:\Users\HP\Documents\MEMMCOL Documents\Codes\Netbeans\MMXExplorerPlus\dist\run1394106374
jfxsa-run:
BUILD SUCCESSFUL (total time: 1 second)
我不确定为什么会这样。
我正在使用 Netbeans 8.0.2和Jdk 1.8