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