This discussion is archived
0 Replies Latest reply: Nov 28, 2010 11:13 PM by 812400 RSS

SecurityException: Application not authorized to access the restricted API

812400 Newbie
Currently Being Moderated
Hi All,

I am developing a J2ME application.
While i am trying to execute it, it displays the following error.

Running in the maximum security domain
startApp threw an Exception
java.lang.SecurityException: Application not authorized to access the restricted API
     at com.sun.midp.security.SecurityToken.checkIfPermissionAllowed(+40)
     at com.sun.midp.security.SecurityToken.checkIfPermissionAllowed(+7)
     at com.sun.midp.midletsuite.MIDletSuiteImpl.checkIfPermissionAllowed(+8)
     at com.sun.midp.midlet.MIDletState.<init>(+83)
     at javax.microedition.midlet.MIDletProxy.<init>(+5)
     at javax.microedition.midlet.MIDlet.<init>(+13)
     at com.crassy.cityguide.midlet.MyMidlet.<init>(+4)
     at com.crassy.cityguide.midlet.MyMidlet.startApp(+7)
     at javax.microedition.midlet.MIDletProxy.startApp(+7)
     at com.sun.midp.midlet.Scheduler.schedule(+270)
     at com.sun.midp.main.Main.runLocalClass(+28)
     at com.sun.midp.main.Main.main(+80)
Execution completed.
3410635 bytecodes executed
38 thread switches
1667 classes in the system (including system classes)
17753 dynamic objects allocated (534748 bytes)
2 garbage collections (458448 bytes collected)


Could anybody help me to clear this issue please.

Thanks in advance.

Edited by: user11420363 on Nov 28, 2010 6:37 AM

Edited by: crassy on Nov 28, 2010 11:13 PM

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points