[373] in java-interest

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

Re: Re: Re: Native Methods Question

daemon@ATHENA.MIT.EDU (Chuck McManis)
Fri Jun 16 17:54:43 1995

Date: Fri, 16 Jun 1995 14:30:18 -0700
From: cmcmanis@scndprsn.Eng.Sun.COM (Chuck McManis)
To: kevinc@hppcih58.fc.hp.com
Cc: java-interest@java.sun.com


Sorry if this is a duplicate, I don't remember following up to it....

>So are you saying there would need to be a different URL for each platform 
>that was supported?  I was asking if I could somehow set up my classes and 
>related native libraries in a single location and magically have a Solaris 
>browser pick up the .so lib, NT the dll etc.  Possibly a tall order I 
>admit ...

I'm saying that there would be a single URL for the applet, however before
the applet could be loaded and run, the user would have to FTP the shared
object containing the native implementation based on their platform type.
Consider the following HTML code:

    Hi, welcome to the really cool applets page, I've got an applet that
    implements some of its methods in C. To view it you will need to have
    the appropriate code loaded on your system, Please pick your system
    from the list: <p>
    <pre>    
    <a href="ftp://my.host.com/pub/mydirectory/nt.zip">Windows NT</a>
    <a href="ftp://my.host.com/pub/mydirectory/solaris.tar.gz">Solaris</a>
    <a href="ftp://my.host.com/pub/mydirectory/mac.hqx">Mac</a>
    </pre>
    To see it click <a href="myCoolapplet.html">here</a>. <p>

The visitor to your page would click on the appropriate ftp item to get
the right set of shared objects and then go visit your applet page.

Alternatively you could have an applet that opened an FTP connection back
to your host, copied the shared object stuff into the ~/.hotjava directory,
wrote out a small script that would unpack and install it, and then asked
the user to run that script before continuing.

--Chuck


-
Note to Sun employees: this is an EXTERNAL mailing list!
Info: send 'help' to java-interest-request@java.sun.com

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