我的这个j2me 调用了3个jar包,一个是lwuit包,一个是kxml包,最后一个是程序中用到的算法包,程序可以运行,运行到一个页面需要用到算法包里的方法时,就报类似下面的错误:
Method............: 10253fa4 'com/1/CustomCode (static)'
Stack Chunk.......: 22900ac
Frame Pointer.....: 2290120
Current IP........: 10369ef4 = 10369ef4 + offset 0
Previous Frame....: 2290104
Previous IP.......: 1033a48b (offset 29)
Frame size........: 0 (0 arguments, 0 local variables)
Operand[1]........: 10001c10
Operand[2]........: 248f7ec
Operand[3]........: 4
Method............: 10233084 'com/sun/midp/midlet/MIDletState.createMIDlet (static)'
Stack Chunk.......: 22900ac
Frame Pointer.....: 2290104
Current IP........: 1033a48b = 1033a46e + offset 29
Previous Frame....: 22900cc
Previous IP.......: 103ce331 (offset 22)
Frame size........: 7 (1 arguments, 6 local variables)
Argument[0].......: 22908f4
Local[1]..........: 0
Local[2]..........: 240cc4c
Local[3]..........: 22a0354
Local[4]..........: 240cc60
Local[5]..........: 10274b20
Local[6]..........: 240cc2c
Operand[1]........: 248f7ec
Method............: 10295954 'com/sun/midp/midlet/Selector.run (virtual)'
Stack Chunk.......: 22900ac
Frame Pointer.....: 22900cc
Current IP........: 103ce331 = 103ce31b + offset 22
Previous Frame....: 0
Previous IP.......: 1
Frame size........: 6 (1 arguments, 5 local variables)
Argument[0].......: 2290ae0
Local[1]..........: 22a0430
Local[2]..........: 22908f4
Local[3]..........: 0
Local[4]..........: 0
Local[5]..........: 0
Operand[1]........: 22a0430
VM status:
Instruction pointer.: 10369ef4 (offset within invoking method: 0)
Next instruction....: 0xdf
Frame pointer.......: 2290120
Local pointer.......: 2290120
Stack size..........: 128; sp: 2290140; ranges: 22900b4-22902b4;
Contents of the current stack frame:
2290120: 2290104 (lp) (fp)
2290124: 1033a48b
2290128: 229011c
229012c: 10253fa4
2290130: 22900ac
2290134: 0 (end of frame)
2290138: 10001c10
229013c: 248f7ec
2290140: 4 (sp)
Execution stack contains 144 items:
2290ae0
22a0430
22908f4
0
0
0
0
1
240cc30
10295954
22900ac
0
22a0430
22908f4
0
240cc4c
22a0354
240cc60
10274b20
240cc2c
22900cc
103ce331
22900e4
10233084
22900ac
0
248f7ec
2290104
1033a48b
229011c
10253fa4
22900ac
0
10001c10
248f7ec
4
我找了一天了,有些说是什么编译版本应该是1.4以下,有些说是修改debug的延时时间,有些说的换个模拟器,有些说的是关掉防火墙,我几乎所有的办法全部尝试了,不行不行,还是不行,我慢慢觉得这不是配置的问题,而是那个算法jar包的问题,你们怎么看呢??急死人了,运行前面的几个页面都没问题,lwui包和kxml都没问题,怎么到了算法包就报这样错误,我愁死了,有没有谁知道这样的错误究竟是为什么??什么原因引起的??
------解决方案--------------------------------------------------------
public class ClassFormatErrorextends LinkageError
当 Java 虚拟机试图读取类文件并确定该文件存在格式错误或无法解释为类文件时,抛出该错误。
------解决方案--------------------------------------------------------
帮你顶
------解决方案--------------------------------------------------------