2012-02-22 39 views
3

虽然做清洁和建设我得到以下错误。如何避免这个错误。无法清理和建立Netbeans 7.1 Beta

Copying 1 file to E:\NIRAJ\Copyofcopyexample\build 
E:\NIRAJ\Copyofcopyexample\nbproject\build-impl.xml:716: The following error occurred while executing this line: 
E:\NIRAJ\Copyofcopyexample\nbproject\build-impl.xml:544: copylibs doesn't support the "rebase" attribute 

这是build-impl.xml中

<copylibs compress="${jar.compress}" index="${jar.index}" indexMetaInf="${jar.index.metainf}" jarfile="${dist.jar}" manifest="@{manifest}" rebase="${copylibs.rebase}" runtimeclasspath="${run.classpath.without.build.classes.dir}"> 

我使用Windows 7,JDK 1.6。以前我已经编译了与Netbeans 6.9.1相同的代码

+0

为什么使用Beta?最终版本已在6个月前发布? – 2012-02-22 14:45:36

回答

9

尝试从build-impl.xml文件中删除rebase =“$ {copylibs.rebase}”条目。

+0

感谢您的回复,现在我可以构建项目,这是否会影响我的业务逻辑或代码中的其他组件? – 2012-02-22 15:09:34

+1

不,它不安全 – anzaan 2012-02-23 06:31:28

0

如果您使用的是Netbeans IDE,一个简单的解决方案将是rebase="${copylibs.rebase}",将引用的文件导入并移回到原始软件包,构建项目。重新创建文件中的实例并使用修复导入。