protected void compileClass(String className, String s, Directory targetDir)
{
JavaCompiler jc = ToolProvider.getSystemJavaCompiler();
if (jc == null)
{
throw new FileSystemException("No java compiler in the current Java. This must be run on a JDK rather on a JRE");
}
JavaFileManager fm = new TestClassFileManager<JavaFileManager>(jc.getStandardFileManager(null, null, null), targetDir, Thread.currentThread().getContextClassLoader());
if (!jc.getTask(null, fm, null, null, null, Collections.singletonList(new JavaSourceFromString(className, s))).call().booleanValue())