0

我在没有 Webstart 的情况下编译我的代码,并且正确创建了 .jar 文件以及 dist 文件夹中的 lib 文件夹。当我尝试在选择 Webstart(已签名或未签名)的情况下编译我的代码时,dist 文件夹为空。

使用 Netbeans 8.0.2、JDK 1.7。此应用程序最初创建于 2012 年,使用 Swing 应用程序框架。

请注意代码在没有 Webstart 的情况下编译。为什么它不能用 Webstart 编译?需要快速修复,而不是无缘无故地重写一大堆东西。

Clean & Build 的输出:

ant -f C:\\Users\\username\\NetBeansProjects\\selectionsoftware -
Dnb.internal.action.name=rebuild clean jar
init:
deps-clean:
Updating property file: C:\Users\username\NetBeansProjects\selectionsoftware\build\built-clean.properties
Duplicated project name in import. Project jnlp-impl defined first in C:\Users\username\NetBeansProjects\selectionsoftware\nbproject\jnlp-impl.xml and again in C:\Users\username\NetBeansProjects\MyProject\nbproject\jnlp-impl.xml
MyProject.init:
MyProject.deps-clean:
Updating property file: C:\Users\username\NetBeansProjects\selectionsoftware\build\built-clean.properties
MYPKG1Utilities.init:
MYPKG1Utilities.deps-clean:
Updating property file: C:\Users\username\NetBeansProjects\selectionsoftware\build\built-clean.properties
RefpropLibrary.init:
RefpropLibrary.deps-clean:
Updating property file: C:\Users\username\NetBeansProjects\selectionsoftware\build\built-clean.properties
Deleting directory C:\Users\username\NetBeansProjects\refproplibrary\build
RefpropLibrary.clean:
Deleting directory C:\Users\username\NetBeansProjects\mypkg1utilities\build
MYPKG1Utilities.clean:
RefpropLibrary.init:
RefpropLibrary.deps-clean:
Created dir: C:\Users\username\NetBeansProjects\RefpropLibrary\build
Updating property file: C:\Users\username\NetBeansProjects\selectionsoftware\build\built-clean.properties
Deleting directory C:\Users\username\NetBeansProjects\RefpropLibrary\build
RefpropLibrary.clean:
Deleting directory C:\Users\username\NetBeansProjects\MyProject\build
MyProject.clean:
Deleting directory C:\Users\username\NetBeansProjects\selectionsoftware\build
clean:
init:
deps-jar:
Created dir: C:\Users\username\NetBeansProjects\selectionsoftware\build
Updating property file: C:\Users\username\NetBeansProjects\selectionsoftware\build\built-jar.properties
Duplicated project name in import. Project jnlp-impl defined first in C:\Users\username\NetBeansProjects\selectionsoftware\nbproject\jnlp-impl.xml and again in C:\Users\username\NetBeansProjects\MyProject\nbproject\jnlp-impl.xml
MyProject.init:
MyProject.deps-jar:
Created dir: C:\Users\username\NetBeansProjects\MyProject\build
Updating property file: C:\Users\username\NetBeansProjects\selectionsoftware\build\built-jar.properties
MYPKG1Utilities.init:
MYPKG1Utilities.deps-jar:
Created dir: C:\Users\username\NetBeansProjects\mypkg1utilities\build
Updating property file: C:\Users\username\NetBeansProjects\selectionsoftware\build\built-jar.properties
RefpropLibrary.init:
RefpropLibrary.deps-jar:
Created dir: C:\Users\username\NetBeansProjects\refproplibrary\build
Updating property file: C:\Users\username\NetBeansProjects\selectionsoftware\build\built-jar.properties
Created dir: C:\Users\username\NetBeansProjects\refproplibrary\build\classes
Created dir: C:\Users\username\NetBeansProjects\refproplibrary\build\empty
Created dir: C:\Users\username\NetBeansProjects\refproplibrary\build\generated-sources\ap-source-output
Compiling 8 source files to C:\Users\username\NetBeansProjects\refproplibrary\build\classes
warning: [options] bootstrap class path not set in conjunction with -source 1.7
1 warning
Copying 1 file to C:\Users\username\NetBeansProjects\refproplibrary\build\classes
RefpropLibrary.compile:
Created dir: C:\Users\username\NetBeansProjects\refproplibrary\dist
Copying 1 file to C:\Users\username\NetBeansProjects\refproplibrary\build
Copy libraries to C:\Users\username\NetBeansProjects\refproplibrary\dist\lib.
Building jar: C:\Users\username\NetBeansProjects\refproplibrary\dist\RefpropLibrary.jar
To run this application from the command line without Ant, try:
java -jar "C:\Users\username\NetBeansProjects\refproplibrary\dist\RefpropLibrary.jar"
RefpropLibrary.jar:
Created dir: C:\Users\username\NetBeansProjects\mypkg1utilities\build\classes
Created dir: C:\Users\username\NetBeansProjects\mypkg1utilities\build\empty
Created dir: C:\Users\username\NetBeansProjects\mypkg1utilities\build\generated-sources\ap-source-output
Compiling 29 source files to C:\Users\username\NetBeansProjects\mypkg1utilities\build\classes
warning: [options] bootstrap class path not set in conjunction with -source 1.7
1 warning
MYPKG1Utilities.compile:
Created dir: C:\Users\username\NetBeansProjects\mypkg1utilities\dist
Copy libraries to C:\Users\username\NetBeansProjects\mypkg1utilities\dist\lib.
Building jar: C:\Users\username\NetBeansProjects\mypkg1utilities\dist\MYPKG1Utilities.jar
To run this application from the command line without Ant, try:
java -jar "C:\Users\username\NetBeansProjects\mypkg1utilities\dist\MYPKG1Utilities.jar"
MYPKG1Utilities.jar:
RefpropLibrary.init:
RefpropLibrary.deps-jar:
Updating property file: C:\Users\username\NetBeansProjects\selectionsoftware\build\built-jar.properties
RefpropLibrary.compile:
Copying 1 file to C:\Users\username\NetBeansProjects\RefpropLibrary\build
Copy libraries to C:\Users\username\NetBeansProjects\RefpropLibrary\dist\lib.
To run this application from the command line without Ant, try:
java -jar "C:\Users\username\NetBeansProjects\RefpropLibrary\dist\RefpropLibrary.jar"
RefpropLibrary.jar:
Created dir: C:\Users\username\NetBeansProjects\MyProject\build\classes
Created dir: C:\Users\username\NetBeansProjects\MyProject\build\empty
Created dir: C:\Users\username\NetBeansProjects\MyProject\build\generated-sources\ap-source-output
Compiling 84 source files to C:\Users\username\NetBeansProjects\MyProject\build\classes
Copying 20 files to C:\Users\username\NetBeansProjects\MyProject\build\classes
MyProject.compile:
Updating property file: C:\Users\username\NetBeansProjects\MyProject\src\com\mypkg\mypkg1\engine\main\resources\version.properties
Created dir: C:\Users\username\NetBeansProjects\MyProject\dist
Copying 1 file to C:\Users\username\NetBeansProjects\MyProject\build
Created dir: C:\Users\username\NetBeansProjects\MyProject\build\classes\META-INF
Copying 1 file to C:\Users\username\NetBeansProjects\MyProject\build\classes\META-INF
Copy libraries to C:\Users\username\NetBeansProjects\MyProject\dist\lib.
Building jar: C:\Users\username\NetBeansProjects\MyProject\dist\MyProject.jar
To run this application from the command line without Ant, try:
C:\Program Files (x86)\Java\jdk1.7.0_79/bin/java -jar "C:\Users\username\NetBeansProjects\MyProject\dist\MyProject.jar"
Copying 1 file to C:\Users\username\NetBeansProjects\MyProject\build
MyProject.jnlp:
MyProject.jar:
Created dir: C:\Users\username\NetBeansProjects\selectionsoftware\build\classes
Created dir: C:\Users\username\NetBeansProjects\selectionsoftware\build\empty
Created dir: C:\Users\username\NetBeansProjects\selectionsoftware\build\generated-sources\ap-source-output
Compiling 9 source files to C:\Users\username\NetBeansProjects\selectionsoftware\build\classes
C:\Users\username\NetBeansProjects\selectionsoftware\src\com\mypkg\mypkg1\selectionsoftware\EconomizerGUIView.java:162: warning: [unchecked] unchecked call to setModel(ComboBoxModel<E>) as a member of the raw type JComboBox
        compressorTypesComboBox.setModel(compressorModels);
  where E is a type-variable:
    E extends Object declared in class JComboBox
Note: C:\Users\username\NetBeansProjects\selectionsoftware\src\com\mypkg\mypkg1\selectionsoftware\EconomizerGUIView.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
1 warning
Copying 31 files to C:\Users\username\NetBeansProjects\selectionsoftware\build\classes
compile:
Created dir: C:\Users\username\NetBeansProjects\selectionsoftware\dist
jar:
BUILD SUCCESSFUL (total time: 4 seconds)
4

0 回答 0