title: tiny exe to launch a java application
body: <p>Some questions are like: How can I package my java app into an exe ? 
  This is not what I am going to ask. </p>
  
  <p>I can launch my application by doing the following: </p>
  
  <pre><code>java -jar myApp.jar 
  </code></pre>
  
  <p>That works perfectly (Assuming the machine has java 1.5.0 or >)</p>
  
  <p>Now what I was thinking of having is a myApp.exe file.</p>
  
  <p>What it would do is the following: </p>
  
  <ol>
  <li>check if java is installed on the machine and its version.
  if java is not there it would prompt a dialog to say: 
  "you need to install java to run myApp" 
  exactly like eclipse.exe does if it does not find java. 
  it would then terminate. </li>
  <li>if java is there, then effectively run the command 
  javaw -jar app.jar and spawn the process. </li>
  </ol>
  
  <p>any idea ? </p>