antjava-11netbeans-11

Netbeans 11 does not copy libs into dist folder


I want to have a lib folder with all dependent libraries in the dist folder when I create my Netbeans-Project (with Ant and java 11).

I have all my libs within the project at Libraries (you can see them at Project->Properties->Libraries under Classpath) and I also have the checkbox "Copy Dependent Libraries" at Project->Properties->Build->Packaging enabled

I thought the checkbox enables copylibs, but there is no lib folder.


Solution

  • It's a NetBeans 9.0-11.0 bug.

    https://issues.apache.org/jira/browse/NETBEANS-1097

    There is a work-around in there.

    Basically in your build-impl.xml file, delete this after <condition property="do.mkdist">:

     <not>
            <istrue value="${modules.supported.internal}"/>
     </not>