How to load a resource from an embedded JAR File

梦想与她 提交于 2019-12-05 10:14:14

This might be a good resource: http://one-jar.sourceforge.net/version-0.95/

The main idea is that the inner JAR is not loaded by the ClassLoader that loaded the outer JAR automatically, you need to do so manually, e.g. by using a StreamClassLoader to load the inner jar

Only then, from your own ClassLoader you can get that resource using getResourceAsStream(...)

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!