J2ME应用程序打开报异常java/lang/IllegalArgumentException. 只有用NOKIA SDK才会报错.用WTK模拟器不会报 20

Emulatorcommand:C:\Nokia\Devices\Nokia_SDK_1_1_Java\bin\Nokia_SDK_1_1_Java_em.exe-deb... Emulator command: C:\Nokia\Devices\Nokia_SDK_1_1_Java\bin\Nokia_SDK_1_1_Java_em.exe -debugger -vm_port 49152 -classpath "C:\Users\Administrator.PC-20120913XCRG\AppData\Local\Temp\_eclipseme.tmpAdministrator\Bosch1603115517202088553.launch\Bosch.jar" "C:\Users\ADMINI~1.PC-\AppData\Local\Temp\_eclipseme.tmpAdministrator\Bosch1603115517202088553.launch\Bosch.jad"
Connecting to Running "Nokia SDK 1.1 for Java" Instance #1100 ...
connected to port 2778
connected to port 2779
Debug proxy command: kdp.KVMDebugProxy -l 2774 -p -r localhost 49152 -classpath C:\Nokia\Devices\Nokia_SDK_1_1_Java\lib\midp21.jar;C:\Nokia\Devices\Nokia_SDK_1_1_Java\lib\midp20.jar;C:\Nokia\Devices\Nokia_SDK_1_1_Java\lib\midp10.jar;C:\Nokia\Devices\Nokia_SDK_1_1_Java\lib\cldc11.jar;C:\Nokia\Devices\Nokia_SDK_1_1_Java\lib\cldc10.jar;C:\Nokia\Devices\Nokia_SDK_1_1_Java\lib\jsr82.jar;C:\Nokia\Devices\Nokia_SDK_1_1_Java\lib\jsr184.jar;C:\Nokia\Devices\Nokia_SDK_1_1_Java\lib\jsr234.jar;C:\Nokia\Devices\Nokia_SDK_1_1_Java\lib\jsr172_rpc.jar;C:\Nokia\Devices\Nokia_SDK_1_1_Java\lib\jsr172_xmlparser.jar;C:\Nokia\Devices\Nokia_SDK_1_1_Java\lib\jsr75_pim.jar;C:\Nokia\Devices\Nokia_SDK_1_1_Java\lib\jsr75_file.jar;C:\Nokia\Devices\Nokia_SDK_1_1_Java\lib\jsr135.jar;C:\Nokia\Devices\Nokia_SDK_1_1_Java\lib\jsr177_apdu.jar;C:\Nokia\Devices\Nokia_SDK_1_1_Java\lib\jsr177_crypto.jar;C:\Nokia\Devices\Nokia_SDK_1_1_Java\lib\jsr226.jar;C:\Nokia\Devices\Nokia_SDK_1_1_Java\lib\jsr205.jar;C:\Nokia\Devices\Nokia_SDK_1_1_Java\lib\jsr120.jar;C:\Nokia\Devices\Nokia_SDK_1_1_Java\lib\nokiaui.jar;C:\Nokia\Devices\Nokia_SDK_1_1_Java\lib\jsr211.jar;C:\Nokia\Devices\Nokia_SDK_1_1_Java\lib\jsr179.jar;C:\Nokia\Devices\Nokia_SDK_1_1_Java\lib\frameanimator.jar;C:\Nokia\Devices\Nokia_SDK_1_1_Java\lib\gesture.jar;C:\Nokia\Devices\Nokia_SDK_1_1_Java\lib\inapp.jar;C:\Users\Administrator.PC-20120913XCRG\AppData\Local\Temp\_eclipseme.tmpAdministrator\Bosch1603115517202088553.launch\Bosch.jar;C:\Users\ADMINI~1.PC-\AppData\Local\Temp\_eclipseme.tmpAdministrator\Bosch1603115517202088553.launch\Bosch.jar
Connecting to localhost on port 49152
Waiting for debugger on port 2774
Waiting for KVM...
Connection received.
Connected to KVM
Interfaces cmd: exception java.lang.Exception: Couldn't get ClassFile object for Interfaces cmd
canvas touch enabled: false
Uncaught exception java/lang/IllegalArgumentException.
Exception in thread "Thread-5" Uncaught exception java/lang/IllegalArgumentException.
java.lang.StringIndexOutOfBoundsException: String index out of range: -2
at java.lang.String.substring(Unknown Source)
at kdp.KVMListener.run(KVMListener.java:241)
at java.lang.Thread.run(Unknown Source)
ALERT: Attempting to resume a non-suspended thread
"Nokia SDK 1.1 for Java" Connection Terminated
展开
 我来答
百度网友9308069
2013-01-07 · TA获得超过1万个赞
知道大有可为答主
回答量:3947
采纳率:89%
帮助的人:1914万
展开全部
nokia s40 sdk 1.1 for java 需要JDK 6.x才能运行好,JDK7.x可能出现潜在问题。。

像是项目设置出了问题。建议重启eclipse,重启me虚拟机,clean project清除项目缓存.
再试。
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
bd9006
2013-01-04 · TA获得超过2.5万个赞
知道大有可为答主
回答量:4.8万
采纳率:63%
帮助的人:1.6亿
展开全部
内置的JVM版本可能不同,导致取字符串时超出下标了
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式