Steps to reproduce:
- File -> New Project -> Java Application -> Next -> Finish
- Right-click Libraries, Add JAR/Folder. Add whatever jar file.
- Check that project Properties -> Packaging -> Copy Dependent Libraries is checked.
- Clean and Build project.
- Observe contents of dist\ directory.
When Project -> Properties -> Source/Binary Format is JDK 8, there exists dist\lib\ directory, and the jar added in step 1) is copied into that directory, as expected, when Copy Dependent Libraries is checked.
But when Source/Binary Format is greater than JDK 8, dist\lib\ directory does not exist.
The reason seems to be these parts in build-impl.xml:
I've observed that mkdist.disabled setting is "Copy Dependent Libraries" checbox state negated. And do.mkdist controls the library copying.
But why is this library copying connected to javac.source version in this way? If by design, what should I do in order to get jars copied to dist\lib\ as they used to?
For now, a workaround seems to be manually deleting the weird
part from build-impl.xml, but that needs to be re-done every time NetBeans recreates it.