In Midlet

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rpradeepa
    New Member
    • Apr 2008
    • 23

    In Midlet

    HI,

    what is the procedure to run the midlet program?

    Thanks in Advance
  • pronerd
    Recognized Expert Contributor
    • Nov 2006
    • 392

    #2
    Midlet is not a specific program. It is a development model like at applet or servlet.

    Comment

    • rpradeepa
      New Member
      • Apr 2008
      • 23

      #3
      Hi pronerd,
      I just downloaded j2me wireless toolkit 2.5.2, jdk1.6.0_05
      I have one midlet program, jar file, jad file and manifest file.
      I clicked on build then run, an generic emulator showed up, when I clicked on launch to run the application, the emnulator exited with the following message on the console.
      Project "midlets" loaded
      Project settings saved
      Building "midlets"
      Build complete
      Running with storage root C:\Documents and Settings\deeksh a\j2mewtk\2.5.2 \appdb\DefaultC olorPhone
      Running with locale: English_United Kingdom.1252
      Running in the identified_thir d_party security domain
      Method......... ...: 10233084 'com/sun/midp/midlet/MIDletState.cre ateMIDlet (static)'
      Stack Chunk.......: 22000ac
      Frame Pointer.....: 2200104
      Current IP........: 1033a48b = 1033a46e + offset 29
      Previous Frame....: 22000cc
      Previous IP.......: 103ce331 (offset 22)
      Frame size........: 7 (1 arguments, 6 local variables)
      Argument[0].......: 2200910
      Local[1]..........: 0
      Local[2]..........: 237dcd8
      Local[3]..........: 22101b4
      Local[4]..........: 237dcec
      Local[5]..........: 10274b20
      Local[6]..........: 237dcb8
      Operand[1]........: 2200910

      Method......... ...: 10295954 'com/sun/midp/midlet/Selector.run (virtual)'
      Stack Chunk.......: 22000ac
      Frame Pointer.....: 22000cc
      Current IP........: 103ce331 = 103ce31b + offset 22
      Previous Frame....: 0
      Previous IP.......: 1
      Frame size........: 6 (1 arguments, 5 local variables)
      Argument[0].......: 2200b18
      Local[1]..........: 2210290
      Local[2]..........: 2200910
      Local[3]..........: 0
      Local[4]..........: 0
      Local[5]..........: 0
      Operand[1]........: 2210290

      VM status:
      Instruction pointer.: 1033a48b (offset within invoking method: 29)
      Next instruction.... : 0x4c
      Frame pointer.......: 2200104
      Local pointer.......: 22000e8
      Stack size..........: 128; sp: 220011c; ranges: 22000b4-22002b4;
      Contents of the current stack frame:
      22000e8: 2200910 (lp)
      22000ec: 0
      22000f0: 237dcd8
      22000f4: 22101b4
      22000f8: 237dcec
      22000fc: 10274b20
      2200100: 237dcb8
      2200104: 22000cc (fp)
      2200108: 103ce331
      220010c: 22000e4
      2200110: 10233084
      2200114: 22000ac
      2200118: 0 (end of frame)
      220011c: 2200910 (sp)
      Execution stack contains 108 items:
      2200b18
      2210290
      2200910
      0
      0
      0
      0
      1
      237dcbc
      10295954
      22000ac
      0
      2210290
      2200910
      0
      ALERT: java/lang/ClassFormatErro r: Bad version information.
      237dcd8
      22101b4
      237dcec
      10274b20
      237dcb8
      22000cc
      103ce331
      22000e4
      10233084
      22000ac
      0
      2200910

      Execution completed.
      3415854 bytecodes executed
      156 thread switches
      1668 classes in the system (including system classes)
      17749 dynamic objects allocated (531692 bytes)
      2 garbage collections (462940 bytes collected)
      Execution completed.
      3415854 bytecodes executed
      156 thread switches
      1668 classes in the system (including system classes)
      17749 dynamic objects allocated (531692 bytes)
      2 garbage collections (462940 bytes collected)

      what is wrong with this? plz give solution for this
      Im waiting for ur reply.
      Thanks in Advance

      Comment

      • pronerd
        Recognized Expert Contributor
        • Nov 2006
        • 392

        #4
        Originally posted by rpradeepa
        what is wrong with this?
        What is wrong with what? What are you trying to do? Compile, Build, test, de-bug, emulate, etc. What problem are you having? Is there an error, something not working the way you expected, etc? How do you expect people suggest a solution when you will not state the problem?

        Have you even reviewed the documentation to see what the correct procedure is to do what ever it is you are trying? It sounds like you are randomly loading classes or code in to random tools.

        Comment

        Working...