类的加载

private void comeFromJar(Class cl) {

  String className = cl.getName();

  className = className.replace('.', '/');

  String resource = "/" + className + ".class";

  URL url = cl.getResource(resource);

}

posted @ 2015-03-18 10:43  tang9139  阅读(97)  评论(0编辑  收藏  举报