Jump to content

  • Log In with Google      Sign In   
  • Create Account


#ActualGlass_Knife

Posted 13 February 2013 - 10:09 AM

Now I want to share it with people and make sure they can play it by clicking the jar file instead of the MS DOS batch file I created. This would mean the src folder will not be given along side with the Java jar file.

I'm just wondering if you are having a problem with the OS not executing the jar file when clicked, or are you not setting the Main-Class: in the manifest file of the class path. As pointed out above, if the user doesn't have the file associations configured, there is not much you can do. However, there is nothing wrong with having a batch file or shell script to launch your program. ANT does this, for example.

Using launch software to generate an executable for the target OS to launch the Java code behind the scenes seems like overkill for a small game.

#1Glass_Knife

Posted 13 February 2013 - 10:09 AM

Now I want to share it with people and make sure they can play it by clicking the jar file instead of the MS DOS batch file I created. This would mean the src folder will not be given along side with the Java jar file.

I'm just wondering if you are having a problem with the OS not executing the jar file when clicked, or are you not setting the Main-Class: in the manifest file of the class path. As pointed out above, if the user doesn't have the file associations configured, there is not much you can do. However, there is nothing wrong with having a batch file or shell script to launch your program. ANT does this, for example.

Using launch software to generate an executable for the target OS launch the Java code behind the scenes seems like overkill for a small game.

PARTNERS