Re: Can't read file when called from Applet?
From: Nigel Wade (nmw_at_ion.le.ac.uk)
Date: 06/30/04
- Next message: Nigel Wade: "Re: Simple Display problem ...."
- Previous message: Christophe Vanfleteren: "Re: list of files or direcotries"
- In reply to: Kalid: "Re: Can't read file when called from Applet?"
- Next in thread: Roedy Green: "Re: Can't read file when called from Applet?"
- Reply: Roedy Green: "Re: Can't read file when called from Applet?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 30 Jun 2004 10:13:37 +0100
On Tue, 29 Jun 2004 15:07:02 -0500, Kalid wrote:
> "Nigel Wade" <nmw@ion.le.ac.uk> wrote in message
> news:pan.2004.06.29.09.58.06.962129@ion.le.ac.uk...
>> If it's sg.getSyllable() which isn't working it might help if you gave
>> us some clue as to what it does, and how it does it. I'd guess that
>> somewhere in that code it's throwing an exception which you have caught
>> and not dealt with correctly.
>
> sg.getSyllable() is a method in another class which is used by the
> applet. Here's the code:
>
[snip]
>
> fr1 = new FileReader("vowels.txt");
Applets cannot read the local filesystem unless they are signed. Even if
they could, where do you think the applet would look to read that file?
[snip}
> } catch (Exception e) {System.out.println(e);}
I think if you'd taken the trouble to look at the Java Console you would
have seen why it wasn't working.
--
Nigel Wade, System Administrator, Space Plasma Physics Group,
University of Leicester, Leicester, LE1 7RH, UK
E-mail : nmw@ion.le.ac.uk
Phone : +44 (0)116 2523548, Fax : +44 (0)116 2523555
- Next message: Nigel Wade: "Re: Simple Display problem ...."
- Previous message: Christophe Vanfleteren: "Re: list of files or direcotries"
- In reply to: Kalid: "Re: Can't read file when called from Applet?"
- Next in thread: Roedy Green: "Re: Can't read file when called from Applet?"
- Reply: Roedy Green: "Re: Can't read file when called from Applet?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|