if (classpath != null)
for (int i = 0; i < classpath.length; i++)
params.addClasspath(classpath[i]);
// create service, get classes, return compiler
JamService service;
try
{
service = jf.createService(params);
}
catch (IOException ioe)
{
error("Error when accessing .java files.", null);
return null;
}
// JClass[] cls = service.getAllClasses();
// for (int i = 0; i < cls.length; i++)
// {
// JClass cl = cls[i];
// System.out.println("CL: " + cl + " " + cl.getQualifiedName());
// JMethod[] methods = cl.getMethods();
// for (int j = 0; j < methods.length; j++)
// {
// JMethod method = methods[j];
// System.out.println(" " + method.getQualifiedName());
// }
// }
return service.getClassLoader();
}