Eclipse: Packaging a JAR with natives

非 Y 不嫁゛ 提交于 2019-11-29 07:48:23

I just ran into this a few weeks ago. Alas, I do not have links, but I found that you cannot reference native files stored inside of a jar file. You have to either programatically extract them before you reference them, or you have to install them alongside your jar file.

I went with the second option and just have Eclipse pack the whole collection into a zip file for distribution.

For the first option, one place to look would be the source code for JNA. They ship dll's/binaries inside their jar file and extract then on demand.

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