code: protected Set<Class<?>> loadAllClass(File jarFile, ScriptClassLoader loader) throws Exception {
  		Set<Class<?>> clzzs = new HashSet<Class<?>>();
  		JarFile jf = new JarFile(jarFile);
  		try {
  			loader.addURL(jarFile.toURI().toURL());// 添加文件到加载器
  			Enumeration<JarEntry> it = jf.entries();
  			while (it.hasMoreElements()) {
  				JarEntry jarEntry = it.nextElement();
  				if (jarEntry.getName().endsWith(".class")) {
  					String className = jarEntry.getName().replace("/", ".").replaceAll(".class", "");
  					clzzs.add(loader.findClass(className));
  				}
  			}
  		} finally {
  			jf.close();
  		}
  		return clzzs;
  	}
docs: 加载jar的所有类
  
  @param jarFiles
  @param loader
  @return
  @throws ClassNotFoundException
  @throws IOException