• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Executable jar file

 
Garandi Garandi
Ranch Hand
Posts: 192
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1873
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi
in the Manifest file try,
suncertify.client.FlightdataPresenter instead of
suncertify/client/FlightdataPresenter
regards
maulin
 
Garandi Garandi
Ranch Hand
Posts: 192
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 192
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In manifest file the following line was missing.

Therefore it was not able to find the class with main() method.
Thank you
Garandi
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic