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 展开
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 展开
2个回答
展开全部
nokia s40 sdk 1.1 for java 需要JDK 6.x才能运行好,JDK7.x可能出现潜在问题。。
像是项目设置出了问题。建议重启eclipse,重启me虚拟机,clean project清除项目缓存.
再试。
像是项目设置出了问题。建议重启eclipse,重启me虚拟机,clean project清除项目缓存.
再试。
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询