I have the default generated ant script for my netbeans java project and it works great on my windows desktop, I got my dist folder with the lib folder inside.
Now I have the same files and folders on a debian system and run ant, but the dist folder never contains the dependency jars in the lib folder.
The settings in the project and so on are correct.
I am using ant 1.8.0 with debian 6.0.3 and ant 1.8.2 with windows xp.
Here is the ant script generated by netbeans http://pastebin.com/dk2x8Na1.
What is wrong?
I found the “mistake”:
I compared the log files and found the problem:
You can find in the file build.xml following:
It seems that libs.CopyLibs.classpath isn’t set. There is an implementation from NetBeans, which you can find it here java/ant/extra. The lib is called org-netbeans-modules-java-j2seproject-copylibstask.jar.
I added to my project.properties the following entry:
After that all works fine with Debian, too.