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"
Who is Participating?

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

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.

You need to add

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

to your manifest

walker6o9Author Commented:
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.

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

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

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?
(f)ile name
(m)anifest name
(file name as in name of jar)
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

From novice to tech pro — start learning today.