[3530] in java-interest

home help back first fref pref prev next nref lref last post

Re: Native methods in apllets

daemon@ATHENA.MIT.EDU (Arthur van Hoff)
Wed Nov 15 17:16:07 1995

Date: Wed, 15 Nov 1995 10:02:02 -0800
From: Arthur.Vanhoff@Eng.Sun.COM (Arthur van Hoff)
To: martini@psatit.ico.olivetti.com
Cc: java-interest@java.Eng.Sun.COM


Hi Otto,

> Can I call external C code (using native methods) from a Java Applet?
> (I need to interface a Windows DLL for a particular demo with Java 
> Applet - I'm using Netscape 2.0.b2 on Windows 95)

No. It would have serious security implications.

> If no, is there anything than can help me to solve this problem?

I'm not sure if Netscape will let you do this at all. It's internal
APIs have not been published and I believe dynamic linking is turned
off completely.

In HotJava you could ask the user to install the DLL on the file system. 
You have to be careful though, that DLL can do whatever it likes! It is 
not constraint by Java's security mechanisms.

Have fun,

	Arthur van Hoff 
-
This message was sent to the java-interest mailing list
Info: send 'help' to java-interest-request@java.sun.com

home help back first fref pref prev next nref lref last post