Java插件开发-取插件下的某个文件

//找到插件所在处
Bundle bundle = Activator.getDefault().getBundle();
//根据插件转义成URL路径
URL url = FileLocator.toFileURL(bundle.getEntry("ZipFileName"));
String zipPath = url.getPath();
File zipPathFile = new File(zipPath);
if(!zipPathFile.exists()) {
  throw new RuntimeException("");
}
上一篇:【动态规划】【spfa】【最短路】bzoj1003 [ZJOI2006]物流运输trans


下一篇:【bzoj1003】[ZJOI2006]物流运输