java.security.AccessControlException issue
- From: "merrittr" <merrittr@xxxxxxxxx>
- Date: 23 Mar 2007 09:44:19 -0700
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?
.
- Follow-Ups:
- Re: java.security.AccessControlException issue
- From: Tom Hawtin
- Re: java.security.AccessControlException issue
- Prev by Date: Re: Converting code from NetLogo
- Next by Date: Moving along an angle
- Previous by thread: Eclipse compilation errors
- Next by thread: Re: java.security.AccessControlException issue
- Index(es):
Relevant Pages
|
|