我在 netbeans 7.1.2 中有一个项目,当我尝试构建该项目时遇到以下问题
D:\netbeans_workspace\Servlets-DWR\nbproject\build-impl.xml:479: The libs.CopyLibs.classpath property is not set up.
This property must point to
org-netbeans-modules-java-j2seproject-copylibstask.jar file which is part
of NetBeans IDE installation and is usually located at
<netbeans_installation>/java<version>/ant/extra folder.
Either open the project in the IDE and make sure CopyLibs library
exists or setup the property manually. For example like this:
ant -Dlibs.CopyLibs.classpath=a/path/to/org-netbeans-modules-java-j2seproject-copylibstask.jar
BUILD FAILED (total time: 0 seconds)
最佳答案
您可以按照以下步骤解决该问题:
- 在 NetBeans 中,选择“工具”>“选项”>“其他”> Ant
- 在“属性”部分中,添加以下属性:
libs.CopyLibs.classpath=/java/ant/extra/org-netbeans-modules-java-j2seproject-copylibstask.jar
确保替换为报告错误的 netbeans 实例的路径。例如C:/Program Files/NetBeans 6.9.1
关于java - 在 netbeans 7.1.2 中构建项目时出现问题?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11407591/