5859606162636465666768
// We're using the new classloader from here on out Thread.currentThread().setContextClassLoader(cl); // Go! Class taskClass = cl.loadClass(taskClassName); Runnable task = (Runnable)taskClass.newInstance(); task.run(); } }