Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6607218

FileChooser throws security exception while creation

XMLWordPrintable

    • generic
    • windows_xp

      I tried to run attached program Main.java with setted security manager (-Djava.security.manager -Djava.security.policy=perm.policy). Shortly this programm only creates FileChooser: new JFileChooser("c:\\temp\\").

      JDK 7 throws exception
      Exception in thread "main" java.security.AccessControlException: access denied (java.io.FilePermission C:\Documents and Settings\pp208049\Recent read).

      At the same time JDK 6 creates FileChooser without any problems.

            rupashka Pavel Porvatov (Inactive)
            rupashka Pavel Porvatov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: