public class JavaStringCompiler extends Object
public Map<String,byte[]> compile(String fileName, String sourceCode) throws IOException
fileName - the name of the file to compilesourceCode - the source code to compileIOException - if an I/O error occurs during the compilation processpublic Class<?> loadClass(String name, Map<String,byte[]> classBytes) throws ClassNotFoundException, IOException
name - the name of the class to loadclassBytes - a map of class names to class bytesClassNotFoundException - if the class cannot be foundIOException - if an I/O error occursCopyright © 2019–2025 indunet. All rights reserved.