[5035] in java-interest

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

Re: Loading applet from local file system

daemon@ATHENA.MIT.EDU (Arthur van Hoff)
Fri Jan 26 14:01:08 1996

From: Arthur.Vanhoff@Eng.Sun.COM (Arthur van Hoff)
To: gavin@asiaconnect.com.my (Gavin Bong Chun Jin)
Date: Fri, 26 Jan 1996 08:47:54 -0800 (PST)
Cc: java-interest@webrunner.neato.org (java)
In-Reply-To: <Pine.SGI.3.91.960126164011.15539B-100000@ns.asiaconnect.com.my> from "Gavin Bong Chun Jin" at Jan 26, 96 05:06:17 pm


Hi Gavin,

> 	Let me describe the scenario first. I am running a Win95 JDKbeta.
> What I want to do are as follows:
> 
> 	a) User starts netscape
> 	b) User Chooses Open-File option
> 	c) User selects index.html from A: drive 
>            (where index.html has an applet tag)
> 	d) The index.html causes an applet residing in A: drive to run
> 	e) The applet reads from a file in A: and does some processing on it.
>  	f) Finally the applet connects to another host and sends the strings
>            read from the file.
> 
> Part of the scenario worked when I ran appletviewer on the index.html file.
> However it fails when I use netscape as I described above. Why?

The problem is caused by the fact that Netscape's file security is stricter
than the appletviewer's. Netscape lets you start an applet from a file URL
but the applet fails if it needs more classes than just the initial one.
It is a bug in Netscape.

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