[java] My jar can't find the main class....

Started by
2 comments, last by n0rmanfreak 12 years, 11 months ago
I"m trying to build a Jar file for my minesweeper game. So this I tried to se a guide here... http://www.skylit.com/javamethods/faqs/createjar.html But well no matter what I do the Jar that's created will never find the main.... *sigh* Any hints?
Advertisement
This stuff does work, you are doing somthing wrong. It is not easy at first to figure out what you are doing wrong. As a start, please post the error message or Exception when you try to launch the *.jar file.

I think, therefore I am. I think? - "George Carlin"
My Website: Indie Game Programming

My Twitter: https://twitter.com/indieprogram

My Book: http://amzn.com/1305076532

And more importantly, the exact command line you use to run your jar. Do you specify the right main class?

Omae Wa Mou Shindeiru

you should check your manifest file. open it with an editor and check if the line

Main-Class: DanceStudio

is proper...make sure that you reference the class with package name...so it might look like this:
Main-Class: com.rubsnick.game.MyGameMain

This topic is closed to new replies.

Advertisement