jQuery in Action, 3rd edition
The moose likes Beginning Java and the fly likes Deploy Java Desktop application. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Deploy Java Desktop application. " Watch "Deploy Java Desktop application. " New topic

Deploy Java Desktop application.

Toren Valone

Joined: May 27, 2008
Posts: 3
Using Eclipse 3.2 and SWT. I export all related files and create a JAR. When clicking on the JAR file, the hour glass appears for a second then disappears. I checked in the windows task manager and javaw.exe appears for a second and then disappears. When executing the jar file in the command prompt window using the following command java fgs.jar I get
Exception in thread "main" java.lang.NoClassDefFoundError: fgs/jar.
Can anyone push me in the right direction?
Campbell Ritchie

Joined: Oct 13, 2005
Posts: 46424
Difficult. It sounds as though you are short of a necessary class in your jar file.

See if you can copy your jar to another directory, and unzip it (jars use virtually the same format as .zip files) and see whether all the classes you need are actually inside the jar.

Are there any external jar files which you had to import into Eclipse? I seem to have written about something similar yesterday, here. Please see whether that is of any help to you.
Campbell Ritchie

Joined: Oct 13, 2005
Posts: 46424
. . . and welcome to JavaRanch
Ilja Preuss

Joined: Jul 11, 2001
Posts: 14112


the name of a class in your project?

The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
I agree. Here's the link: http://aspose.com/file-tools
subject: Deploy Java Desktop application.
It's not a secret anymore!