Possible Duplicate:
How to speed up Java VM (JVM) startup time?
Over the course of the day, I have to execute a series of small & 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?
Is there something like a Java shell that I can use to execute programs in-process? Similar to the Python shell?