[5454] in java-interest

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

SecurityException error

daemon@ATHENA.MIT.EDU (Kenneth Cheng)
Fri Feb 9 20:56:52 1996

From: Kenneth Cheng <kcheng@cs.stanford.edu>
To: java-interest@java.sun.com
Date: Fri, 9 Feb 1996 15:33:31 -0800 (PST)

When I opened a file to a RandomAccessFile object, I receive the following
I received an error when I tried to create a RandomAccessFile object.  Here is
the error message I received:
   **Security Exception: file.read:TESTING***
   sun.applet.AppletSecurityException: security.file.read: TESTING

This is what I did to open a file:
   RandomAccessFile rf = null;
   try {rf = new RandomAccessFile("TESTING"), "rw")} 
      catch (Exception e) {System.out.println("error");}

It is a very simple fragment to run.  I had this segment together with my
window interface program.  But when I run the same fragment alone in a new
file, it works.
Any idea?
-
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