Results 1 to 3 of 3
- 08-24-2008, 03:22 AM #1
Member
- Join Date
- Jul 2008
- Posts
- 13
- Rep Power
- 0
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
- 08-24-2008, 03:58 AM #2
Is this a duplicate posting? See other thread
- 08-24-2008, 04:24 AM #3
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
Quite similar thread found, but not exactly same. So I'm not delete this thread, but I have to close this.
Other thread is located here.
Similar Threads
-
three tier Desktop Application
By newmember in forum AWT / SwingReplies: 0Last Post: 07-27-2008, 03:10 PM -
Problem in running java programs
By aravind in forum New To JavaReplies: 0Last Post: 07-14-2008, 11:19 AM -
Installer for Java desktop application
By nitingupta183 in forum SWT / JFaceReplies: 0Last Post: 03-18-2008, 07:53 AM -
problem while running java code..
By Jjava in forum New To JavaReplies: 0Last Post: 02-08-2008, 06:33 AM -
Running a application in java
By barney in forum Java AppletsReplies: 1Last Post: 08-07-2007, 07:12 AM


LinkBack URL
About LinkBacks

Bookmarks