【发布时间】:2021-02-07 04:36:19
【问题描述】:
我正在使用 Eclipse Indigo (3.7) 构建一个使用 ant 和 build.xml 文件的应用程序。
我收到以下异常:
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
谁能建议我如何解决这个问题?
【问题讨论】:
-
这不是例外,它是自定义错误消息。请设置属性
libs.CopyLibs.classpath -
您应该将 jar 复制到项目的 lib 文件夹中,并将
libs.CopyLibs.classpath属性(可能在 project.properties 中)指向 jar。 jar 存在于 Netbeans 安装中。