• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Executable jar file

 
Ranch Hand
Posts: 192
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 1873
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
reply
    Bookmark Topic Watch Topic
  • New Topic