# Calling DLLs from Java Applets

Ben Graham (bg@neurodynamics.com)
Fri, 28 May 1999 10:10:56 +0100

- Messages sorted by: [ date ][ thread ][ subject ][ author ]
- Next message: S Darbha: "Question About JDBC security"
- Previous message: Andrew Finall: "Granting privileges dynamically"

    From: "Ben Graham" <bg@neurodynamics.com>

    To: <java-security@java.sun.com>

    Subject: Calling DLLs from Java Applets

    Date: Fri, 28 May 1999 10:10:56 +0100

------=_NextPart_000_0004_01BEA8F2.60AF8460
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
X-Sun-Content-Length: 913

Dear Sir/Madam,

I am relatively new to the Java scene, but have been given the task of =
getting a Java Applet to call a C DLL. I am aware of the security =
implications of this (signing the applets, certificates, etc), but for =
now just want to bypass the browser security. I have read that this can =
be done by adding a line to the netscape prefs.js file, but when doing =
this the writeFile.java applet doesn't seem to bypass the security. I =
have also read that applets loaded from the local file system and not =
via the web can load libraries and read and write files.=20

Please can you guide me in the right direction, firstly how to test and =
develop applets by avoiding signing and certificates and secondly to any =
documentation on how the JNI works with applets, some example code would =
be greatly appreciated.

I thank you immensly if you can help in any way

BEN GRAHAM
bg@neurodynamics.com

------=_NextPart_000_0004_01BEA8F2.60AF8460
Content-Type: text/html; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
X-Sun-Content-Length: 1704

<!DOCTYPE HTML PUBLIC "-//W3C//DTD W3 HTML//EN">
Dear Sir/Madam,
I am relatively new to the Java = scene, but have=20 been given the task of getting a Java Applet to call a C DLL. I am aware = of the=20 security implications of this (signing the applets, certificates, etc), = but for=20 now just want to bypass the browser security. I have read that this can = be done=20 by adding a line to the netscape prefs.js file, but when doing this the=20 writeFile.java applet doesn't seem to bypass the security. I have also = read that=20 applets loaded from the local file system and not via the web can load = libraries=20 and read and write files.
Please can you guide me in the right = direction,=20 firstly how to test and develop applets by avoiding signing and = certificates and=20 secondly to any documentation on how the JNI works with applets, some = example=20 code would be greatly appreciated.
I thank you immensly if you can help = in any=20 way
BEN GRAHAM
bg@neurodynamics.com
------=_NextPart_000_0004_01BEA8F2.60AF8460--

- Next message: S Darbha: "Question About JDBC security"
- Previous message: Andrew Finall: "Granting privileges dynamically"