2012-02-22 37 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}",將引用的文件導入並移回到原始軟件包,構建項目。重新創建文件中的實例並使用修復導入。