Results 1 to 2 of 2
  1. #1
    Join Date
    Jul 2010
    Location
    Bangalore
    Posts
    7
    Rep Power
    0

    Default MidletSample program giving java/lang/ClassFormatError: Bad version informatan error

    I hope can anyone help me
    Building "SampleMidlet"
    Build complete
    Running with storage root DefaultColorPhone
    Method............: 100d2aa8 'com/sun/midp/midlet/MIDletState.createMIDlet (static)'
    Stack Chunk.......: f979bc
    Frame Pointer.....: f97a18
    Current IP........: 10128592 = 10128584 + offset 14
    Previous Frame....: f979dc
    Previous IP.......: 1012052b (offset 22)
    Frame size........: 8 (1 arguments, 7 local variables)
    Argument[0].......: f994ec
    Local[1]..........: 0
    Local[2]..........: f979dc
    Local[3]..........: fa87f8
    Local[4]..........: f979f0
    Local[5]..........: 100dcdd0
    Local[6]..........: f979bc
    Local[7]..........: 1015f0a0
    Operand[1]........: f994ec

    Method............: 100cd0e4 'com/sun/midp/midlet/Selector.run (virtual)'
    Stack Chunk.......: f979bc
    Frame Pointer.....: f979dc
    Current IP........: 1012052b = 10120515 + offset 22
    Previous Frame....: 0
    Previous IP.......: 1
    Frame size........: 6 (1 arguments, 5 local variables)
    Argument[0].......: f99730
    Local[1]..........: fa8a08
    Local[2]..........: f994ec
    Local[3]..........: 0
    Local[4]..........: 0
    Local[5]..........: 0
    Operand[1]........: fa8a08

    VM status:
    Instruction pointer.: 10128592 (offset within invoking method: 14)
    Next instruction....: 0x4c
    Frame pointer.......: f97a18
    Local pointer.......: f979f8
    Stack size..........: 128; sp: f97a30; ranges: f979c4-f97bc4;
    Contents of the current stack frame:
    f979f8: f994ec (lp)
    f979fc: 0
    f97a00: f979dc
    f97a04: fa87f8
    f97a08: f979f0
    f97a0c: 100dcdd0
    f97a10: f979bc
    f97a14: 1015f0a0
    f97a18: f979dc (fp)
    f97a1c: 1012052b
    f97a20: f979f4
    f97a24: 100d2aa8
    f97a28: f979bc
    f97a2c: 0 (end of frame)
    f97a30: f994ec (sp)
    Execution stack contains 112 items:
    f99730
    fa8a08
    f994ec
    0
    0
    0
    0
    1
    f979c0
    100cd0e4
    f979bc
    0
    fa8a08
    f994ec
    0
    f979dc
    fa87f8
    f979f0
    100dcdd0
    f979bc
    1015f0a0
    f979dc
    1012052b
    ALERT: java/lang/ClassFormatError: Bad version information.
    f979f4

    100d2aa8
    f979bc
    0
    f994ec

    Execution completed.
    443035 bytecodes executed
    9 thread switches
    486 classes in the system (including system classes)
    2493 dynamic objects allocated (73916 bytes)
    1 garbage collections (0 bytes collected)
    Execution completed.
    443035 bytecodes executed
    9 thread switches
    486 classes in the system (including system classes)
    2493 dynamic objects allocated (73916 bytes)
    1 garbage collections (0 bytes collected)

    I am using jdk1.6.0,CLDC1.0 and Sun wirelesstool kit

  2. #2
    Norm's Avatar
    Norm is online now Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,253
    Rep Power
    25

    Default

    Could be that the compiler and JVM are different/incompatible versions of java

    OR the class file is corrupted.
    Last edited by Norm; 07-23-2010 at 04:38 PM.

Similar Threads

  1. Replies: 1
    Last Post: 12-05-2009, 07:28 AM
  2. Replies: 1
    Last Post: 10-26-2009, 04:38 PM
  3. Replies: 2
    Last Post: 09-18-2008, 07:30 AM
  4. Replies: 0
    Last Post: 09-14-2008, 03:47 PM
  5. Giving Change: A Rudimentary Program (Questions)
    By carlodelmundo in forum New To Java
    Replies: 8
    Last Post: 08-13-2008, 11:33 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •