URL加载jar

 // !/test.xml 是表示jar中的test.xml文件
final URL jarUrl = new URL("jar:file:/C:/proj/parser/jar/parser.jar!/test.xml");
final JarURLConnection connection =
(JarURLConnection) jarUrl.openConnection();
final URL url = connection.getJarFileURL(); System.out.println(url.getFile());
上一篇:Go语言Eclipse开发环境配置-Windows


下一篇:tenserflow models包的安装