开发者

Does the Java Native Access API locally save the native libraries for execution?

开发者 https://www.devze.com 2023-01-01 05:09 出处:网络
I was just wondering if anyone knew whether the Java Native Access API will locally save the native 开发者_高级运维libraries into a temporary location before or when loading and using native libraries

I was just wondering if anyone knew whether the Java Native Access API will locally save the native 开发者_高级运维libraries into a temporary location before or when loading and using native libraries?


No. Libs have to be on the OS search path and are loaded from there. The native dll (win) or so (linux etc.) however has to be placed in the search path, e.g. in the main directory of your application. It might be (don't know) that the dll is contained in the .jar, in this case it is extracted into the temp folder and linked from there.

0

精彩评论

暂无评论...
验证码 换一张
取 消