• 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

Fail to run sample program in Max Habibi's book

 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I've read Max Habibi's book "The Sun Certified Developer Exam with J2SE 1.4" . I've followed all the steps shown in chapter 8 but failed in running the DVD application.
The statement after "java -jar sampleproject.jar" is
" Failed to load Main-Class manifest attribute from
sampleproject.jar"
Could anyone please tell what's wrong with it?
Many thanks!
Ego
 
Ranch Hand
Posts: 619
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Ego,

Originally posted by Ego Tang:
The statement after "java -jar sampleproject.jar" is
" Failed to load Main-Class manifest attribute from
sampleproject.jar"
Could anyone please tell what's wrong with it?


Quick answer: edit your manifest file so that it ends with an (extra) blank line. Then, run jar again, and the problem should disappear.
There is a bug in the way the jar command processes the manifest file.
By the way, your first name is very (in English anyway).
Hope this helps,
George
[ February 06, 2004: Message edited by: George Marinkovich ]
 
Author
Posts: 144
5
jQuery Eclipse IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I tried this and this didn't work. Has anyone else seen this problem?
Thanks,
Tom
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic