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
--
[email protected] <mailto:[email protected]>
http://landofwolf.blogspot.com/ <http://landofwolf.blogspot.com/>

<<attachment: h_leininger.vcf>>

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to