Java tutorial
import javax.tools.JavaCompiler; import javax.tools.ToolProvider; public class CompileFiles1 { public static void main(String[] args) { JavaCompiler compiler = ToolProvider.getSystemJavaCompiler(); compiler.run(null, null, null, args); } }