Wikipedia
JRuntime
JRuntime is the simple library for Java. It makes easier an access to Java 6 compiler API.
This library enables compiling, executing and modifying Java-code dynamically while the program is working.