[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 3443
  • Last Modified:

Failed to load Main-Class attribute

I saved my project as a JAR, but I keep getting the error-message "Failed to load Main-Class manifest attribute from C:\My Projects\QuizGame.jar"
0
walker6o9
Asked:
walker6o9
  • 5
  • 2
  • 2
1 Solution
 
CEHJCommented:
You need to add

Main-Class: YourApp
<empty line>
<empty line>


to your manifest

0
 
walker6o9Author Commented:
CEHJ
how do I add that to my manifest, and how should I save my manifest?
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
CEHJCommented:
If you haven't create a manifest file, make one called 'my.mf' and put in what i posted above


jar cfm QuizGame.jar my.mf <apps files or directory here>

http://csdl.ics.hawaii.edu/~johnson/613f99/modules/04/jar-files.html
0
 
walker6o9Author Commented:
what does cfm mean?
0
 
CEHJCommented:
(c)reate
(f)ile name
(m)anifest name
0
 
CEHJCommented:
(file name as in name of jar)
0
 
CEHJCommented:
:-)
0
 
objectsCommented:
Link above steps you thru what you need to do, and also includes a sample manifest
0

Featured Post

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

  • 5
  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now