How To Fix The libs.CopyLibs.classpath Problem in NetBeans 7

I recently made some updates to my NetBeans development environment and encountered this weird error:

d:\dev\myproject\nbproject\build-impl.xml:485: 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
/java/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

BUILD FAILED (total time: 0 seconds)

I was able to resolve it by following these steps:

  1. In NetBeans, select Tools > Options > Miscellaneous > Ant
  2. In the Properties section, add the following property
libs.CopyLibs.classpath=pathtoyour_netbeans/java/ant/extra/org-netbeans-modules-java-j2seproject-copylibstask.jar

Click OK and Build your project again. This error will go away. Hope this helps. Happy coding!

Did you like my blog post?

Signup now and receive an email when I publish new luv2code content.

I agree to have my personal information transfered to AWeber ( more information )

I will never give away, trade or sell your email address. You can unsubscribe at any time.

13 Comments

  1. Comments  Amit   |  Wednesday, 24 April 2013 at 6:19 am

    Thanks. This works.

  2. Comments  Garry   |  Friday, 10 May 2013 at 10:17 am

    Amazing!!

    In Netbeans 7.2 the Ant is at Tools > Options > Java 😉

    rgds

  3. Comments  doos   |  Friday, 03 January 2014 at 10:03 am

    Thank you much!)
    p.s. garry +)

  4. Comments  Fakiraddi   |  Wednesday, 19 February 2014 at 10:21 am

    Thank u it work… 🙂

  5. Comments  sezhian   |  Wednesday, 16 April 2014 at 3:54 am

    Thanks Man ! it worked and saved me 2 hours

  6. Comments  sezhian   |  Wednesday, 16 April 2014 at 3:54 am

    Thanks Man ! it worked and saved me 2 hours.Good Work

  7. Comments  Ghulam Mohammed   |  Wednesday, 23 April 2014 at 3:01 am

    Thanks man it worked like a charm.

  8. Comments  Rajesh   |  Friday, 09 May 2014 at 1:16 pm

    I didnt find the properties option in both Tools > Options > Java and Tools > Options > Miscellaneous > Ant

  9. Comments  Chad Darby   |  Friday, 09 May 2014 at 2:22 pm

    Hi Rajesh,

    The steps above work for NetBeans 7.3 on MS Windows.

    What version of NetBeans are you using? Also, what OS?

  10. Comments  helo   |  Monday, 12 May 2014 at 5:55 am

    There is already something mentioned in the property as “build.compiler.emacs=true”.. should I delete this? or copy in the next line?

  11. Comments  anonimo   |  Monday, 30 June 2014 at 11:39 am

    wow, thanks man

  12. Comments  Nelson   |  Sunday, 28 February 2016 at 12:06 am

    Thanks man!!!! Amazing

  13. Comments  Nelson   |  Sunday, 28 February 2016 at 12:08 am

    Thanks man!!!! Amazing godbless

Leave a Reply