Tap here to go to the mobile version of the site.
Your Firefox is out of date and may contain a security risk! Upgrade Firefox

Support Forum

I wrote a java applet that accesses the file system using AccessController.doPrivileged. it workes on all windows, and browsers, except FF on win 7.


running as administrator solves the problem, however, it is not needed for IE or Chrome, only for FF. tested on win 7 with: FF: 16, 17 18 java: 1.6, 1.7 32 bit.

the code tries to write a file to the default sandbox location, and of course that it is signed. (otherwise it wouldn't have worked in other browsers):

AccessController.doPrivileged(new PrivilegedAction<String>() {
            public String run()
                   String filename = UUID.randomUUID().toString();
                    File newTextFile = new File(filename);
                    String filepath = newTextFile.getAbsolutePath();
                    fileWriter = new FileWriter(newTextFile);
                    return "a";

Modified by cor-el

Additional System Details


  • User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.17 (KHTML, like Gecko) Chrome/24.0.1312.56 Safari/537.17

More Information

  • Top 10 Contributor
  • Moderator
10738 solutions 96600 answers

A good place to ask advice about web development is at the MozillaZine "Web Development/Standards Evangelism" forum.

The helpers at that forum are more knowledgeable about web development issues.
You need to register at the MozillaZine forum site in order to post at that forum.