File toolsJar = CommonUtil.getCompilerJar();
if (toolsJar.exists()) {
cl.addURL(toolsJar.toURI().toURL());
}
Class c = cl.loadClass("com.sun.tools.javac.Main");
ByteArrayOutputStream err = new ByteArrayOutputStream();
Method compile = c.getMethod("compile", new Class[]{String[].class});