1 Reply Latest reply on Mar 14, 2011 4:38 PM by gimbal2

    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