Duplicate :
|
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.
|