×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Aug 2012
    Posts
    3

    Apps work on emulator but not on phone

    Hello, I am a beginner to mobile programming and can't get my apps to work on my phone.
    They work just perfect on the emulator (I am using Nokia IDE for Java ME (Eclipse) v1)
    but when I put them on my phone (a Nokia C3-00) there is always this error message "Invalid application".

    I even tried a simple hello world app with the same result.

    Can anyone give me a hint where my mistake might be?

  2. #2
    Super Contributor
    Join Date
    Mar 2003
    Location
    Finland
    Posts
    9,555

    Re: Apps work on emulator but not on phone

    What's in your .jad file and what's in the manifest file inside the .jar?

  3. #3
    Registered User
    Join Date
    Aug 2012
    Posts
    3

    Re: Apps work on emulator but not on phone

    .jad file:
    MIDlet-Jar-Size: 19485
    MIDlet-Jar-URL: HelloWorld.jar
    MIDlet-Name: Hello World MIDlet Suite
    MIDlet-Vendor: DTR
    MIDlet-Version: 1.2
    MicroEdition-Configuration: CLDC-1.1
    MicroEdition-Profile: MIDP-2.0
    MANIFEST.MF:
    Manifest-Version: 1.0
    MIDlet-Vendor: DTR
    MIDlet-Version: 1.2
    MicroEdition-Configuration: CLDC-1.1
    MIDlet-Name: Hello World MIDlet Suite
    MicroEdition-Profile: MIDP-2.0

  4. #4
    Nokia Developer Expert
    Join Date
    May 2012
    Location
    Espoo
    Posts
    224

    Re: Apps work on emulator but not on phone

    Hi DTr and Welcome to Nokia Developer Discussion board!

    please check the compulsory attributes for jad/manifest listed here http://www.developer.nokia.com/Commu...ies/attributes

    from the above jad/manifest, following mandatory attribute is missing
    MIDlet-<n> Information about the nth MIDlet in the MIDlet suite. Provides the name, icon and main class of the MIDlet, separated by a comma.

  5. #5
    Registered User
    Join Date
    Aug 2012
    Posts
    3

    Re: Apps work on emulator but not on phone

    That was the mistake. I added the MIDlet-1 attribute and now it works.

    Thank you!

Similar Threads

  1. Replies: 1
    Last Post: 2011-09-12, 15:44
  2. How to delete apps in Symbian phone emulator?
    By Eagle King in forum Symbian Tools & SDKs
    Replies: 2
    Last Post: 2011-05-30, 02:48
  3. recording work on emulator but not on phone?!
    By noussaENSI in forum Symbian Media (Closed)
    Replies: 4
    Last Post: 2008-03-27, 09:00
  4. 7250i sockets work on phone but not emulator
    By trrutter in forum Mobile Java General
    Replies: 0
    Last Post: 2004-04-13, 08:09
  5. sis works in emulator and dont want to work on phone!
    By pch007 in forum Symbian Tools & SDKs
    Replies: 1
    Last Post: 2003-07-16, 03:26

Posting Permissions

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