2010-08-19 43 views

回答

4

事实上:

URLClassLoader cl = new URLClassLoader(urls); 
Thread thread = new MyThread(); 
thread.setContextClassLoader(cl); 
thread.start(); 
0

使用Thread.currentThread().setContextClassloader(),并作出新URLClassLoader与所需的类路径。

相关问题