title: How to optimize launch times of small Java command line programs?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/1491325/how-to-speed-up-java-vm-jvm-startup-time">How to speed up Java VM (JVM) startup time?</a>  </p>
  </blockquote>
  
  
  
  <p>Over the course of the day, I have to execute a series of small &amp; quick Java command line programs.  On Windows, to run a simple Java program from a the command line (like Hello World), sometimes it takes around 5 seconds due to the overhead of launching the java.exe process.   The programs take a second to execute but the overhead of starting the programs is dominates the total execution time.  Is there a way to optimize this?  </p>
  
  <p>Is there something like a Java shell that I can use to execute programs in-process?  Similar to the Python shell?</p>