View Single Post
  #4 (permalink)  
Old 03-04-2008, 09:22 PM
gibsonrocker800's Avatar
gibsonrocker800 gibsonrocker800 is offline
Senior Member
 
Join Date: Nov 2007
Location: New York
Posts: 143
gibsonrocker800 is on a distinguished road
Send a message via AIM to gibsonrocker800
Well that really depends. If it is a console application (uses System.out.println() and Scanners), it cannot be executed via double-click. However, it can be executed by the following command, in a DOS window.

Code:
java -jar SlotsGame.jar
Now, on the other hand, if it is graphical, you can run it via double-click, and of course you can use the above command.

Oh and I'm glad i could help you create your jar.

Here's something that i thought was a really cool idea. I made a program which makes jars for the user (after they specify a few things). The way it does it, is that it creates a MS-DOS batch file which executes the commands i showed you, thus created a .jar file. It's pretty cool, if anyone would like me to send them the finished program (which is a jar program =]), I'd be glad to. (i just gotta finish up a few things, like a user manual)
__________________
//Haha javac, can't see me now, can ya?
Reply With Quote