Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Fail to run sample program in Max Habibi's book

 
Ego Tang
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • 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
 
George Marinkovich
Ranch Hand
Posts: 619
  • Mark post as helpful
  • send pies
  • 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 ]
 
Tom Henricksen
Author
Ranch Hand
Posts: 144
5
Eclipse IDE jQuery Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I tried this and this didn't work. Has anyone else seen this problem?
Thanks,
Tom
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic