Jump to content
  • Advertisement
Sign in to follow this  
rubsnick

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

This topic is 2688 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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?

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!