public static int run(String[] args) throws Exception {
try {
ClassLoader cl = SchemaGenerator.class.getClassLoader();
if(cl==null) cl = ClassLoader.getSystemClassLoader();
ClassLoader classLoader = new APTClassLoader(cl,packagePrefixes);
return run(args, classLoader);
} catch( ToolsJarNotFoundException e) {
System.err.println(e.getMessage());
return -1;
}