Skip to main content

Native libraries and applets ?

5 replies [Last post]
lilianc
Offline
Joined: 2005-04-08
Points: 0

Is there a plan to include native library support into applets ?

Some projects like JOGL on java.net would certainly benefit from inclusion into browser as an applet.

There is currently a 'dirty' workaround : using an installer applet to copy proper dlls into java.libray.path on the client, but it doesn't work on all platforms (I've read Mac OS protects that path) and may overlap with other applications requiring other versions of the same .dll / .so

The other workaround is... to use Java Web Start, but it is not suited for everyone's needs.

Regards,

Lilian

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
stanleyh
Offline
Joined: 2004-02-02
Points: 0

The most likely way we will improve native library deployment is to support JNLP extension in Java Plug-in, and native libraries would be downloaded into the local cache (that user has write permission) and used by the applets during deployment.

Stanley Ho
J2SE Deployment Team

lilianc
Offline
Joined: 2005-04-08
Points: 0

you beat me on this post... i was about to ask how ?

so my last question : will this feature be included in a future snapshot ? (this year ?).

Many thanks.

Lilian

stanleyh
Offline
Joined: 2004-02-02
Points: 0

Yes, improving native library deployment for applets is in our plan.

Stanley Ho
J2SE Deployment Team

podlesh
Offline
Joined: 2004-07-26
Points: 0

One of the key features of Java applet is that they run in sandbox, ensuring security. Any native code is unsafe and must not be allowed.

If that "dirty workaroud" really works, it's a security hole and should be patched.

Also, native libraries are not portable.

lilianc
Offline
Joined: 2005-04-08
Points: 0

a trusted applet (digitally signed) has all permissions on the user's computer : sockets, runtime.exec() ans so on... so why not native libraries like those used by java web start ?

I agree using a native library is something outside of the sandbox and it should stay outside in mustang.