从路径获取Jar网址列表
/** 来自 nowjava**/ //package com.nowjava; import java.io.File; import java.net.MalformedURLException; import java.net.URL; import java.util.ArrayList; import java.util.List; public class Main { public static URL[] getJarUrlListFromPath(String path) throws MalformedURLException { List<URL> urlList = new ArrayList<URL>(); File directory = new File(path); for (File file : directory.listFiles()) { if (file.getName().endsWith(".jar")) { urlList.add(new URL("file://" +