I want to build a jar containing a class which I have derived from a class in second jar. I add a reference to the second jar in my project but then Netbeans copies that jar to dist/lib which I don’t really want. Is there a way to reference the second jar at compile time but not have it copied.
Specifically, I am making a custom task for Ant so I derive from org.apache.tools.ant.Task and I don’t want ant.jar copied to dist/lib.
This is with Netbeans 7.0.
One way of achieving this is to ‘Uncheck’ the Copy Dependent Libraries check box, which will ensure that no JAR files are copied to
distfolder.Exact Steps:
distfolder.