title: Java - How to enter runtime arguments (of main method) by double-clicking a jar file?
body: <p>I encountered this problem several times. If I pack a Java application in an executable jar file that takes arguments from a user, then the user have to invoke the program (jar file) from the command prompt by the following command:</p>
  
  <pre><code>java -jar "jar-file-name.jar"
  </code></pre>
  
  <p>But I want that whenever a user double clicks on the executable jar file (that needs arguments from the user), a window (command-prompt window) appears that would appear if we had invoked the jar file from the command-prompt.</p>
  
  <p>I know one solution to this is using batch file <code>.bat</code> to run the jar file. Is there any other solution?</p>