//找到插件所在处 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(""); }