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?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

CEHJCommented:
You need to add

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


to your manifest

walker6o9Author Commented:
CEHJ
how do I add that to my manifest, and how should I save my manifest?
Learn SQL Server Core 2016

This course will introduce you to SQL Server Core 2016, as well as teach you about SSMS, data tools, installation, server configuration, using Management Studio, and writing and executing queries.

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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
walker6o9Author Commented:
what does cfm mean?
CEHJCommented:
(c)reate
(f)ile name
(m)anifest name
CEHJCommented:
(file name as in name of jar)
CEHJCommented:
:-)
Mick BarryJava DeveloperCommented:
Link above steps you thru what you need to do, and also includes a sample manifest
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Delphi

From novice to tech pro — start learning today.