aspose file tools*
The moose likes Java in General and the fly likes Executable jar file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Executable jar file" Watch "Executable jar file" New topic
Author

Executable jar file

Garandi Garandi
Ranch Hand

Joined: Jan 07, 2003
Posts: 192
I have the following package.
suncertify.client.FlightdataPresenter (where FlightdataPresenter has the main() method)
I want to create an executable jar file.
manifest file looks like

and dir structure is

manifest file is located in "classes" dir which is one level above suncertify.
I use the following command in classes dir to jar up the classes.

But when I run the jar file I get the following error.

It cannot find the class which has the main method.
But the file is present in jar file.
Thank you
Garandi
Maulin Vasavada
Ranch Hand

Joined: Nov 04, 2001
Posts: 1871
hi
in the Manifest file try,
suncertify.client.FlightdataPresenter instead of
suncertify/client/FlightdataPresenter
regards
maulin
Garandi Garandi
Ranch Hand

Joined: Jan 07, 2003
Posts: 192
I tried both "." and "/" The problem is that it cannot find the class which is in manifest file. Although I did this in the past but don't remember how I did it.
Garandi
Garandi Garandi
Ranch Hand

Joined: Jan 07, 2003
Posts: 192
In manifest file the following line was missing.

Therefore it was not able to find the class with main() method.
Thank you
Garandi
 
Don't get me started about those stupid light bulbs.
 
subject: Executable jar file