简体   繁体   中英

Embed shared libs in Java Applets

Is it possible to embed linux shared libs (.so) in Java applets?

I know that I can call JNI code from applets (privileged only), but is it possible embed these libs inside the applet?

..is it possible embed these libs inside the applet?

No. Natives should be inside the root path of a separate Jar. There should be separate Jars for OS X, *nix and Windows. Then use Java Web Start to deploy the lot and reference each Jar containing natives in an OS specific resource section of the JNLP launch file - so each OS only downloads the type of natives that it requires.

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