本文介绍了该libs.CopyLibs.classpath属性未设置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用Eclipse靛蓝(3.7),使用蚂蚁的build.xml 文件来构建应用程序

我收到以下异常:

  C:\\导航仪\\ nbproject文件\\ build-impl.xml中:774:该libs.CopyLibs.classpath属性不成立。
此属性必须指向
ORG-的NetBeans模块-java的j2seproject-copylibstask.jar文件,该文件是一部分
NetBeans IDE安装的,并且通常位于
< netbeans_installation> / JAVA<&版GT; / ANT /额外的文件夹中。
无论是在IDE中打开该项目,并确保CopyLibs库
存在的或设置该属性手动。例如像这样:
 蚂蚁-Dlibs.CopyLibs.classpath = A /路径/要/ ORG-的NetBeans模块-java的j2seproject-copylibstask.jar

任何人都可以建议我如何解决这个问题呢?


解决方案

我不得不从GitHub拉NetBeans项目后,同样的问题。问题是,该文件 /nbproject/private.properties 包含一条线...

<$p$p><$c$c>\"user.properties.file=C:\\\\Users\\\\Thilina\\\\AppData\\\\Roaming\\\\NetBeans\\\\7.3\\\\build.properties\"

...这是指向错误的位置。我修正了,问题就走开了。

I'm using Eclipse Indigo (3.7) to build an application using ant and a build.xml file.

I am getting the following exception:

C:\navigator\nbproject\build-impl.xml:774: 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

Can anyone suggest me how to resolve this issue?

解决方案

I had the same problem after pulling a NetBeans project from GitHub. The problem was, the file /nbproject/private.properties contained a line...

"user.properties.file=C:\\Users\\Thilina\\AppData\\Roaming\\NetBeans\\7.3\\build.properties"

...which was pointing to a wrong location. I corrected that and the problem went away.

这篇关于该libs.CopyLibs.classpath属性未设置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-15 23:30