[java] My jar can't find the main class....
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?
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.
And more importantly, the exact command line you use to run your jar. Do you specify the right main class?
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
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
Popular Topics
Advertisement