解决 Netbeans Ant: taskdef class org.netbeans.modules.java.j2seproject.copylibstask.CopyLibs cannot be found

你在用Netbeans(实际上是Ant)Clean and Build你的项目生成可执行文件(例如Windows下的exe文件)时候遇到报错

或者遇到这样的报错:

The libs.CopyLibs.classpath property is not set up

 

参考资料:http://www.adam-bien.com/roller/abien/entry/how_to_fix_the_libs

 

解决办法:Tools>Options>Java>Ant>Properties中添加这样一项:

libs.CopyLibs.classpath=[NETBEANS_HOME]/java/ant/extra/org-netbeans-modules-java-j2seproject-copylibstask.jar

其中NETBEANS_HOME是netbeans的安装目录,例如Windows下

D\:/Program Files (x86)/jmonkeyplatform

当然jmonkeyplatform其实就是基于Netbeans的IDE,本质上就是netbeans

注意冒号要用转义字符\:

你可能感兴趣的:(Netbeans)