我不知道这是 Netbeans 还是 Ubuntu 或 Java 的问题。但我正在运行 Ubuntu 13.10 64 位,并尝试从使用 Netbeans IDE 7.0.1 创建的 Java 应用程序中创建一个 jar 文件。
按下“清理并构建”按钮后会发生以下情况
init:
deps-clean:
Updating property file: /home/jeggy/Skjøl/NetBeansProjects/KTEditor/build/built-clean.properties
Deleting directory /home/jeggy/Skjøl/NetBeansProjects/KTEditor/build
clean:
init:
deps-jar:
Created dir: /home/jeggy/Skjøl/NetBeansProjects/KTEditor/build
Updating property file: /home/jeggy/Skjøl/NetBeansProjects/KTEditor/build/built-jar.properties
Created dir: /home/jeggy/Skjøl/NetBeansProjects/KTEditor/build/classes
Created dir: /home/jeggy/Skjøl/NetBeansProjects/KTEditor/build/empty
Created dir: /home/jeggy/Skjøl/NetBeansProjects/KTEditor/build/generated-sources/ap-source-output
Compiling 11 source files to /home/jeggy/Skjøl/NetBeansProjects/KTEditor/build/classes
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: /home/jeggy/Skjøl/NetBeansProjects/KTEditor/src/Connect.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Copying 17 files to /home/jeggy/Skjøl/NetBeansProjects/KTEditor/build/classes
compile:
Created dir: /home/jeggy/Skjøl/NetBeansProjects/KTEditor/dist
Copying 1 file to /home/jeggy/Skjøl/NetBeansProjects/KTEditor/build
/home/jeggy/Skjøl/NetBeansProjects/KTEditor/nbproject/build-impl.xml:990: The following error occurred while executing this line:
/home/jeggy/Skjøl/NetBeansProjects/KTEditor/nbproject/build-impl.xml:834: copylibs doesn't support the "excludeFromCopy" attribute
BUILD FAILED (total time: 0 seconds)
有人可以解释或者帮助我解决这个问题吗?
答案1
这只是一个简单的 Netbeans 错误文件。单击倒数第二行的链接
/home/jeggy/Skjøl/NetBeansProjects/KTEditor/nbproject/build-impl.xml:834
:
删除属性excludeFromCopy
– 不是整行,只是与之相关的一段代码!