• 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 ...
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
  • Piet Souris
  • Himai Minh

Help: executable jar file

Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have finished the assignment. I found it is hard to explain how to set classpath both in windows and unix. So i decided to use executable jar file. But why it alway has the error:Fail to load main-Class manifest attribute from ...
How to solve the problem?
Another question,is there any specification about the final package name. should use the ID or whatever?
Ranch Hand
Posts: 117
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What you need is a Main-class header in your manifest file to identify which class is executable.

Then jar using -cmfv options.
Final jar name info is copied from another link:
"The name of your submission archive file MUST be derived from your i.d. as shown here. (Note that in the United States, your i.d. is your 9-digit social security number, e.g. 555443333. Outside the U.S., your i.d. might be 9 digits, or it might be 2 characters followed by 7 digits, e.g. sp1234567.) Your archive filename MUST BE scjda-AAAAAAAAA.ZZZ, where AAAAAAAAA is your i.d., and
ZZZ is the appropriate filename extension for your archive type (zip, tar, or jar)."
[ July 31, 2002: Message edited by: Robin Underwood ]
them good ole boys were drinking whiskey and rye singin' this'll be the day that I die. Drink tiny ad.
Free, earth friendly heat - from the CodeRanch trailboss
    Bookmark Topic Watch Topic
  • New Topic