copylibs doesn’t support the “excludeFromCopy” attribute

While building a NeBbeans 7.4 project in an earlier version of NetBeans you can get this error (Bug 231468) during compiling.

C:\<project root>\<project>\nbproject\build-impl.xml:834: copylibs doesn’t support the “excludeFromCopy” attribute

Suppose you are trying to clean and build a NetBeans projects(previously build with later version of NetBeans IDE) using an earlier version, this problem occurs.

To solve this problem:
A. Install the later version of NetBeans. or

B. If you do not want to install the later version of NetBeans, do the following changes to let the code compile

-Open <your project>\nbproject\build-impl.xml
-Find the lines containing <copylibs … excludeFromCopy= … ></copylibs>
-Delete the excludeFromCopy attribute from the above lines (not the entire row just the attribute), and now your code should be able to compile.

 

admin

Hello! I am Md. Abdul Bari; founder and admin of javaknowledge; currently providing training as a J2EE faculty in The Computers Ltd. Dhaka, Bangladesh under an IT Scholarship project provided by IDB-BISEW. I am a self learner and passionate about training and writing. I am always trying my best to share my knowledge through my blog.

More Posts - Website

Follow Me:
TwitterFacebookGoogle Plus

12,807` Total Views

Leave a Reply

Your email address will not be published. Required fields are marked *


+ 5 = eight