jar file running console program
Hi I have created my netbeans project and created te appriopiate jar file from netbeans. This program is purely console based using "Scanner" for user input and system.out.println
Whenever I double click the program nothing happens. However when i go to the cmd (I'm using windows) and type: java -jar consolegame.jar
it works. Is there anyway so that when I double click the jar file it automatically runs the program into console without opening command prompt and loading the jar from there?