[3577] in java-interest
Re: Native methods in apllets
daemon@ATHENA.MIT.EDU (Arthur van Hoff)
Thu Nov 16 15:58:32 1995
From: Arthur.Vanhoff@Eng.Sun.COM (Arthur van Hoff)
To: Dean_Burson.LOTUS@crd.lotus.com (Dean Burson)
Date: Thu, 16 Nov 1995 09:08:56 -0800 (PST)
Cc: java-interest@webrunner.neato.org (java)
In-Reply-To: <9511161622.AA03842@internet1.lotus.com> from "Dean Burson" at Nov 16, 95 11:11:05 am
Hi Dean,
> I'm slightly perplexed. I reckon awt (for example) is uses
> native methods to put pixels on the screen. If so, is the DLL
> loaded from within awt java code? Or is it loaded by the
> java shell, (i.e. Netscape, HotJava) and made available
> to awt some other way?
>
> Assuming that the shell does provide native services, is
> it possible to extend these by using the shell API directly?
> Is this what's meant by having HotJava installing the DLL
> on the file system?
Java programs (not applets) can load arbetrary DLLs and
execute methods in them. Applets can't do that. However,
since HotJava is an Java program it can be extended with
new native libraries which will then by accessible to applets.
Anyway, to do this you would have to download a DLL over a
secure channel and install it on your file system. This has
to be done with caution because any DLL can be security
hole.
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