×

Discussion Board

Results 1 to 4 of 4

Thread: Preverifying

  1. #1
    Regular Contributor
    Join Date
    Mar 2010
    Posts
    136

    Preverifying

    In Preverifying Class Files,
    Because the memory on small devices is so scarce, MIDP (actually, CLDC) specifies that bytecode verification be split into two pieces. Somewhere off the device, a preverify step is performed. The device itself is only required to do a lightweight second verification step before loading classes.
    That is what I read from a book.
    According to that, although we are running a program successfully in an emulator, it may not work in a real device? Because we do only a preverify step before we test in an emulator?

  2. #2
    Super Contributor
    Join Date
    Mar 2008
    Location
    The Capital of INDIA
    Posts
    4,328

    Re: Preverifying

    Quote Originally Posted by komomo View Post
    In Preverifying Class Files,
    Because the memory on small devices is so scarce, MIDP (actually, CLDC) specifies that bytecode verification be split into two pieces. Somewhere off the device, a preverify step is performed. The device itself is only required to do a lightweight second verification step before loading classes.
    That is what I read from a book.
    According to that, although we are running a program successfully in an emulator, it may not work in a real device? Because we do only a preverify step before we test in an emulator?
    Correct indeed, when you will develop the apps and will be a experienced developer then you will face many situation like this and probably you will start a thread for the workaround purposals...
    Last edited by raj_J2ME; 2010-06-10 at 14:12.
    Thanks with Regards,

    R a j - The K e r n e l


    Join Delhi-NCR Nokia Developer's Community,

  3. #3
    Registered User
    Join Date
    Oct 2009
    Location
    Noida
    Posts
    941

    Re: Preverifying

    Refer to http://en.wikibooks.org/wiki/J2ME_Pr...Dlet_Preverify
    for more info on prefification.
    We need to do this preferfication step as a part of the build process to prepare the final JAR which we deploy on the real device also, just like you do on emulator. Its not that we skip this step when we test on real device.
    Thanks,
    Ekta

  4. #4
    Super Contributor
    Join Date
    Jun 2003
    Location
    Cheshire, UK
    Posts
    7,395

    Re: Preverifying

    Bytecode verification occurs in two stages:

    1. Preverification: this is done at build time, by running the preverifier tool.

    2. Verification: this is done by the Java Virtual Machine, either in the emulator or on the device (there is no difference here).

    Graham.

Similar Threads

  1. Preverifying packages
    By dafunkymunky in forum Mobile Java General
    Replies: 2
    Last Post: 2006-10-01, 12:59
  2. Preverifying problems
    By jaazz in forum Mobile Java Tools & SDKs
    Replies: 1
    Last Post: 2006-08-17, 18:31
  3. preverifying MIDlet
    By Land96 in forum Mobile Java General
    Replies: 1
    Last Post: 2004-01-23, 09:40
  4. Preverifying and JARring?
    By weedy in forum Mobile Java General
    Replies: 2
    Last Post: 2003-07-12, 22:48
  5. Preverifying Error
    By aap1 in forum Mobile Java General
    Replies: 1
    Last Post: 1970-01-01, 02:00

Posting Permissions

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