aspose file tools*
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
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Deploy Java Desktop application. " Watch "Deploy Java Desktop application. " New topic
Author

Deploy Java Desktop application.

Toren Valone
Greenhorn

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
Sheriff

Joined: Oct 13, 2005
Posts: 38873
    
  23
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.
CR
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 38873
    
  23
. . . and welcome to JavaRanch
Ilja Preuss
author
Sheriff

Joined: Jul 11, 2001
Posts: 14112
is

fgs.jar

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
 
 
subject: Deploy Java Desktop application.