程序可以运行在模拟器中,但是签名后不能运行在真机上--报错Error starting

程序可以运行在模拟器中,但是签名后不能运行在真机上--报错

Error starting DemoApp: 'DemoApp' may not contain classes in com.rim, net.rim, net.blackberry, java or javax packages.

 

解决办法:

把项目DemoApp中的com.rim, net.rim, net.blackberry, java or javax 开头的包改名即可。

 

参考:

http://supportforums.blackberry.com/t5/Java-Development/Signed-code-still-generates-unsigned-error-on-device/m-p/243063

 

At the moment, you probably don't care much about packages, what to do with them or what they mean. I'll just say that for security reasons the JAVA Virtual Machine doesn't like it when your classes are in the same package as system classes (com.rim, net.rim, java, etc.).

你可能感兴趣的:(java,Security,System)