|
Problem running a java desktop application
I created a java desktop application which runs and debugs fine in NetBeans, but the jar file it creates does not contain the library files, so attempting to run it from a terminal window gives me this error:
Exception in thread "AWT-EventQueue-0" java.lang.NoClassDefFoundError: javax/swing/GroupLayout$Group
How do I create a jar file that will run from a terminal command, i.e.,
java -jar myApp.jar
or better still, is there a way to create an application that will run in different platforms by double clicking it? I use a Mac OS 10.5 intel with java 1.6 for development.
Thanks in advance,
Chris, gaiag.net
|