List<File> sources = new ArrayList<>();
sources.add(f);
String javaCompiler = Paths.get(System.getProperty("java.home"), "..", "bin", "javac").toString();
CompilerJava compiler = new CompilerJava(javaCompiler);
List<String> compileClasspath = new ArrayList<>();
boolean success = compiler.compile(sources, compileClasspath, Sandbox.SANDBOX_CLASS_DIR.toFile(), new ISandboxLogListener()
{
@Override
public void log(String msg)
{
}