当前位置: 代码迷 >> J2ME >> java.lang.SecurityException:   Application   not
  详细解决方案

java.lang.SecurityException:   Application   not

热度:2772   发布时间:2013-02-25 21:36:38.0
使用三星模拟器时出现问题请帮忙
eclipseme1.6.6,SAMSUNG   JaUmi   Wireless   Toolkit   2.0,windowsXp
jdk1.5,jmunit1.0.1
在被测试类中运行正常,但在TestCase中出现的错误如下:

Running   with   storage   root   SGH_X475
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> (+66)
at   javax.microedition.midlet.MIDletProxy. <init> (+5)
at   javax.microedition.midlet.MIDlet. <init> (+13)
at   han.onepiece.OnePiece. <init> (+4)
at   han.onepiece.test.OnePicecTest.test(+7)
at   jmunit.framework.cldc10.TestCase.test(+19)
at   jmunit.framework.cldc10.Screen.run(+10)

------解决方案--------------------------------------------------------
帮UP
  相关解决方案