简体   繁体   中英

Embedding JNI dll into java

是否可以将JNI dll / so嵌入到Java可执行文件中,这样我们就无需将其外部发送?

There's no monolithic "Java executable" -- java.exe needs a directory tree full of support stuff. You can install your DLL in the "standard extensions" directory inside that tree, though -- native libraries for standard extensions go in ${JAVA_HOME}/lib/ext/i386 (for example) on Linux and Mac, or ${JAVA_HOME}/bin on Windows -- so that the user doesn't install anything extra.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM