Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User ash_putra's Avatar
    Join Date
    May 2004
    Location
    La Rochelle
    Posts
    22
    I tested my MIDlet applications using an S40 DP20 emulator integrated in J2ME WTK.
    After packaging the apps in JAR and JAD files, i run it.
    Bizzarely, the emulator launches "java/lang/ClassNotFoundException".


    I have run each MIDlet that i made using Nokia 6230 emulator integrated in Sun One Studio 4, ME and it worked well.

    But why, when i package it in a JAR and JAD files, it didn't work???

    Can anyone tell me what's going on?

    Thanks b4

  2. #2
    Super Contributor shmoove's Avatar
    Join Date
    Mar 2003
    Location
    Israel
    Posts
    2,280
    It could be a couple of things. For example if you're obfuscating your package and you don't have the proper -keep options set up then it will also change the name of the main MIDlet's class, and it will not match the MIDlet-n entry in the jad.

    The best thing you could do is open up the packaged jar you're trying to run (with any zip utility) and check that the entry point class (the MIDlet subclass) is there and the filename and path is correct, ie, matches the package and class name in the jad.

    shmoove

  3. #3
    Registered User ash_putra's Avatar
    Join Date
    May 2004
    Location
    La Rochelle
    Posts
    22
    thanks shmoove for ur suggestion, it works now !

    -ash-

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved