title: Running a .jar file in a command prompt from double click
body: <p>I'll start of by saying Im on windows 7.</p>
  
  <p>I have created a .jar file which executes fine from the command line using the - java -jar myJar.jar approach</p>
  
  <p>But what I'm after is to be able to double click on the jar file and for it to open up the command prompt window and run in the command prompt as if i've just typed the java -jar myJar.jar line.</p>
  
  <p>When I double click the jar file I do think it is running because a visual part of the java is appearing, but there is no command prompt window showing my console output.</p>
  
  <p>After looking around I've come across people saying that javaw which is what the jar files are associated with don't have a console and that I need to associate jar files with java.exe instead of javaw.exe. I've tried this and it didn't seem to work.</p>
  
  <p>Can anyone help? A step by step would be nice.</p>