Thanks for the heads up! Incidentally, after I posted my question, I changed my source code level and platform to Java 8 and got the old behavior back: the libraries got copied to dist/lib/ . So maybe this bug had to do with Java 9 related changes that came with modularization? Just guessing.
Anyway, i’ll switch to NB 11.2. Tschüss, Thomas > On Nov 5, 2019, at 2:26 AM, Helmut Leininger <h.leinin...@gmx.at> wrote: > > > I think it is solved in Netbeans 11.2 > > Helmut > > Am 05.11.2019 um 03:57 schrieb Thomas Wolf: >> I'm developing a pretty standard Swing application in Netbeans 11.1 on a >> Mac, using Oracle Java 12.0.2+10. While I was doing day-to-day development, >> I told the IDE not to create a jar of the application after every compile. >> But now that I'm ready to give this code to someone, I told Netbeans in >> Properties->Packaging to create the jar and to copy dependent libraries. >> The jar gets created in the dist/ directory, but the dependent libraries do >> not get copied over. I could have sworn that in NB 8 and older, a "lib/" >> directory would be created and the dependent jars would be copied there. >> Instead I get the following build output: >> >> Created dir: /Users/twolf/NetBeansProjects/SST/dist >> Copying 1 file to /Users/twolf/NetBeansProjects/SST/build >> Building jar: /Users/twolf/NetBeansProjects/SST/dist/SST.jar >> To run this application from the command line without Ant, try: >> /Library/Java/JavaVirtualMachines/jdk-12.0.2.jdk/Contents/Home/bin/java -cp >> /Users/twolf/java/jaxb-ri/lib/jaxb-api.jar:/Users/twolf/java/jaxb-ri/lib/jaxb-core.jar:/Users/twolf/java/jaxb-ri/lib/jaxb-impl.jar:/Users/twolf/java/jaxb-ri/lib/jaxb-jxc.jar:/Users/twolf/java/jaxb-ri/lib/jaxb-xjc.jar:/Users/twolf/java/jaxb-ri/lib/javax.activation.jar:/Users/twolf/NetBeansProjects/SST/dist/SST.jar >> com.spectare.sst.MainFrame >> deploy: >> jar: >> BUILD SUCCESSFUL (total time: 3 seconds) >> >> Is this a bug or what does "Properties->Packaging->Copy dependent Jars" >> actually do? >> >> Thanks, >> tom >> -- >> tjw...@gmail.com >> http://landofwolf.blogspot.com/ > <h_leininger.vcf> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org > For additional commands, e-mail: users-h...@netbeans.apache.org > > For further information about the NetBeans mailing lists, visit: > https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists