title: Make an executeble JAR run in a console when double clicked
body: <p>I'm in the process of porting simple console apps written in C++ to Java in order to show how similar the languages are, and how code can be ported. I've exported executable JARs for the programs using Eclipse. These JARs work fine when they are run using the java -jar command. However, they do not run properly when executed from windows explorer (double clicked). A console window simply opens and closes rapidly.</p>
  
  <p>The only solution I have found thus far is to use a batch file. Is there any other option?</p>