Breadcrumbs
Home / How To Fix The libs.CopyLibs.classpath Problem in NetBeans 7How To Fix The libs.CopyLibs.classpath Problem in NetBeans 7
Last Updated on Thursday, 7 June 2012 Written by Chad Darby Thursday, 7 June 2012
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:
- In NetBeans, select Tools > Options > Miscellaneous > Ant
- 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!
Thanks. This works.
Amazing!!
In Netbeans 7.2 the Ant is at Tools > Options > Java 😉
rgds
Thank you much!)
p.s. garry +)
Thank u it work… 🙂
Thanks Man ! it worked and saved me 2 hours
Thanks Man ! it worked and saved me 2 hours.Good Work
Thanks man it worked like a charm.
I didnt find the properties option in both Tools > Options > Java and Tools > Options > Miscellaneous > Ant
Hi Rajesh,
The steps above work for NetBeans 7.3 on MS Windows.
What version of NetBeans are you using? Also, what OS?
There is already something mentioned in the property as “build.compiler.emacs=true”.. should I delete this? or copy in the next line?
wow, thanks man
Thanks man!!!! Amazing
Thanks man!!!! Amazing godbless