1 Reply Latest reply: Mar 14, 2011 11:38 AM by gimbal2 RSS

    java.security.AccessControlException

    843075
      Hi there,


      this code i implement it under java class will produce error above
      the code is:

      pref_variable = Preferences.userNodeForPackage(this.getClass());


      the error line is
      java.security.AccessControlException: access denied (java.lang.RuntimePermission preferences)
           at java.security.AccessControlContext.checkPermission(Unknown Source)
           at java.security.AccessController.checkPermission(Unknown Source)
           at java.lang.SecurityManager.checkPermission(Unknown Source)
           at java.util.prefs.Preferences.userRoot(Unknown Source)
           at java.util.prefs.Preferences.userNodeForPackage(Unknown Source)
           at util.tanggal.KalenderIslam.<init>(KalenderIslam.java:62)
           at kalenderislam.Main$class_tglislam.applyDefaults$(Main.fx:93)
           at com.sun.javafx.runtime.FXBase.applyDefaults$(Unknown Source)
           at com.sun.javafx.runtime.FXBase.initialize$(Unknown Source)
           at kalenderislam.Main$class_tglislam.<init>(Main.fx)
           at kalenderislam.Main$Main$Script.applyDefaults$(Main.fx:103)
           at com.sun.javafx.runtime.FXBase.applyDefaults$(Unknown Source)
           at kalenderislam.Main.<clinit>(Main.fx)


      Please any body help me
        • 1. Re: java.security.AccessControlException
          gimbal2
          Mentioning that this is a javafx application didn't seem like a useful thing to you? If you want help, at least provide all the details.

          Google: "javafx java.security.AccessControlException: access denied"

          First result:

          http://blog.krecan.net/2008/12/16/javafx-security/