5556575859606162636465
// 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(); } }