user2179256
user2179256

Reputation: 749

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?

Upvotes: 1

Views: 36

Answers (1)

Andrew Thompson
Andrew Thompson

Reputation: 168845

..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.

Upvotes: 1

Related Questions