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"
LVL 1
walker6o9Asked:
Who is Participating?
 
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
 
CEHJCommented:
You need to add

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


to your manifest

0
Cloud Class® Course: Microsoft Office 2010

This course will introduce you to the interfaces and features of Microsoft Office 2010 Word, Excel, PowerPoint, Outlook, and Access. You will learn about the features that are shared between all products in the Office suite, as well as the new features that are product specific.

 
walker6o9Author Commented:
CEHJ
how do I add that to my manifest, and how should I save my manifest?
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.