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.
精彩评论