try {
compilationUnit.addJavaSource(fileName.replace(".java", ""), readFile(f.getAbsolutePath()));
ClassLoader classLoader = javaSourceCompiler.compile(compilationUnit);
Class<dExternal> load = (Class<dExternal>) classLoader.loadClass(fileName.replace(".java", ""));
dExternal loadedClass = load.newInstance();
loadedClass.load();
loadedExternals.add(loadedClass);
} catch (Exception e) {
if (e instanceof IllegalStateException) {
dB.echoError("No JDK found! External .java files will not be loaded.");
dB.echoError(e);