java.security.AccessControlException issue



I have a simple java program that reads a file from the OS filesystem
like this:


File file = new File("test.pdf");
FileInputStream in = new FileInputStream(file);
acrobat.setDocumentInputStream(in);


what I get from the JAVA console is:

Netscape security model is no longer supported.
Please migrate to the Java 2 security model instead.


java.lang.ExceptionInInitializerError:
java.security.AccessControlException: access denied
(java.util.PropertyPermission * read,write)
at java.security.AccessControlContext.checkPermission(Unknown Source)
at java.security.AccessController.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkPropertiesAccess(Unknown Source)
at java.lang.System.getProperties(Unknown Source)
at com.adobe.acrobat.gui.ReaderPrefs.<clinit>(ReaderPrefs.java:514)
at com.adobe.acrobat.Viewer.createViewer(Viewer.java:237)
at com.adobe.acrobat.Viewer.<init>(Viewer.java:211)
at SampleReader.<init>(SampleReader.java:46)
at java.lang.Class.newInstance0(Native Method)
at java.lang.Class.newInstance(Unknown Source)
at sun.applet.AppletPanel.createApplet(Unknown Source)
at sun.plugin.AppletViewer.createApplet(Unknown Source)
at sun.applet.AppletPanel.runLoader(Unknown Source)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)


so what don't I have access to? the file being read is set up that I
have access to t?

.



Relevant Pages

  • Re: firefox and java
    ... Since I do not know how Java ... > manages it's sandbox/ security model there are a number ... > An advanatage of links is that only one file needs to be updated. ... Clemson University Math Sciences ...
    (Fedora)
  • Re: firefox and java
    ... Since I do not know how Java ... manages it's sandbox/ security model there are a number ... An advanatage of links is that only one file needs to be updated. ... T o m M i t c h e l l spam unwanted email. ...
    (Fedora)
  • Re: JDK versions in major browsers
    ... > For example, for the security model, to control applet access, ... > do we need to detect what JDK so that to applet different security ... Java Plug-in architecture. ... Brad BARCLAY ...
    (comp.lang.java.programmer)
  • Re: .NET is not secure
    ... It has nothing to do with Reflections. ... ..NET to break out of the restrictions to do with Enterprise solutions? ... this is exactly the only thing the security model of .NET can ... I've been thinking about Java security since 1.2. ...
    (comp.security.firewalls)
  • Embedded WMP Player Java Applet
    ... Also I have discovered this Applet is only signed by MS ... Opera, you will be disappointed & get the message in the ... Opera Java Control Panel: Please upgrade to the Java 2 ... >Netscape security model is no longer supported. ...
    (microsoft.public.windowsmedia.player.web)