×

Discussion Board

Results 1 to 9 of 9
  1. #1
    Registered User
    Join Date
    Feb 2009
    Posts
    13

    Series 40, invalid application

    Hello everybody,

    I have a big problem with the series 40. I installed the sdk for the nokia 6212 with eclipseME

    I can compile an example of code (TicketExample) but when I put it on my emulator, it tolds me invalid application

    I am serching for a while but didn't find any clue until now,( i tried to change version of java)

    Thanks for your help!




    ps: same thing in eclipse 3.3.2 as 3.4.2

  2. #2
    Nokia Developer Champion
    Join Date
    Nov 2007
    Location
    Rome, Italy
    Posts
    2,406

    Re: Series 40, invalid application

    Have you correctly defined the MIDlet attributes in your JAD? If you want, you can also try posting JAD contents, to spot out possible problems with it.

    Pit

  3. #3
    Registered User
    Join Date
    Feb 2009
    Posts
    13

    Re: Series 40, invalid application

    Hello,

    Thanks for the answer

    Here are my jad files

    MIDlet-Jar-Size: 3105
    MIDlet-Jar-URL: MFStandardExample.jar
    MIDlet-Name: MFStandardExample Midlet Suite
    MIDlet-Vendor: Midlet Suite Vendor
    MIDlet-Version: 1.0.0
    MicroEdition-Configuration: CLDC-1.1
    MicroEdition-Profile: MIDP-2.0


    Some advice?

    Thanks

    loic

  4. #4
    Nokia Developer Champion
    Join Date
    Nov 2007
    Location
    Rome, Italy
    Posts
    2,406

    Re: Series 40, invalid application

    Hi,

    you're missing the MIDlet(s) declaration within your JAD. Something like this:
    MIDlet-1: MIDlet name,/MIDletIcon.png,com.example.MIDletMainClass
    that lists MIDlet name, icon and class.

    Pit

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

    Re: Series 40, invalid application

    What's in the manifest?

  6. #6
    Registered User
    Join Date
    Feb 2009
    Posts
    13

    Re: Series 40, invalid application

    So I use eclipse ME

    So first i am not sure the file to use

    I have different folder
    in the \rsrc\midp folder i have 3 files

    in the MANIFEST
    MIDlet-1: MFStandardExample, , com.nokia.nfc.app.mfstdexample.MFStandardExample
    MIDlet-Name: MFStandardExample
    MicroEdition-Configuration: CLDC-1.1
    MicroEdition-Profile: MIDP-2.0
    MIDlet-Vendor: Nokia
    MIDlet-Version: 1.0.0

    in the MFSStandardExample.jad

    MIDlet-1: MFStandardExample, , com.nokia.nfc.app.mfstdexample.MFStandardExample
    MIDlet-Jar-Size: @@@
    MIDlet-Jar-URL: MFStandardExample.jar
    MIDlet-Name: MFStandardExample
    MicroEdition-Configuration: CLDC-1.1
    MicroEdition-Profile: MIDP-2.1
    MIDlet-Vendor: Nokia
    MIDlet-Version: 1.0.0

    in the MFSStandardExampleMidlet.jad
    MIDlet-1: MFStandardExampleMidlet, , com.nokia.nfc.app.mfstdexample.MFStandardExampleMidlet
    MIDlet-Jar-Size: @@@
    MIDlet-Jar-URL: MFStandardExampleMidlet.jar
    MIDlet-Name: MFStandardExampleMidlet
    MicroEdition-Configuration: CLDC-1.1
    MicroEdition-Profile: MIDP-2.1
    MIDlet-Vendor: Nokia
    MIDlet-Version: 1.0.0

    but i don't have any .jar file.

    Then I create a package from eclipse and so in the directory deployed i have 2 files

    in MFStandardExample.jad

    MIDlet-Version: 1.0.0
    MIDlet-Vendor: Midlet Suite Vendor
    MIDlet-Jar-URL: MFStandardExample.jar
    MicroEdition-Configuration: CLDC-1.0
    MicroEdition-Profile: MIDP-1.0
    MIDlet-Jar-Size: 3105
    MIDlet-Name: MFStandardExample Midlet Suite


    and MFStandardExample.jar



    I am a little lost ..


    Thanks in advance

    LOic

  7. #7
    Nokia Developer Champion
    Join Date
    Nov 2007
    Location
    Rome, Italy
    Posts
    2,406

    Re: Series 40, invalid application

    Hi LOic,

    generally you can directly send the JAR file to your device, without using the JAD.

    Now that you've added the MIDlet attributes to the JAD/Manifest, do you still get the invalid application error?

    Pit

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

    Re: Series 40, invalid application

    I posted some JAD/Manifest Essentials a while back. Check the JAD and JAR you're installing.

    If you have all the right things, they all match, the JAR size is correct and so on... then possibly the emulator doesn't support CLDC-1.1 (I can't find a spec, but surely is supports MIDP-2.0!). Try changing to CLDC-1.0.

    Don't worry... most people have problems getting the JAD and JAR right on their first app. To make things more confusing, some emulators and devices don't care much, whereas others insist on you sticking exactly to the rules. Once you work out how to get the right things in the right places, you'll be fine.

    Cheers,
    Graham.

  9. #9
    Registered User
    Join Date
    Feb 2009
    Posts
    13

    Re: Series 40, invalid application

    Hello,

    First of all thanks for you help

    As it wasn't working I follow this tutorial with MTJ

    http://live.eclipse.org/node/614

    Everything is working now at the first shot. It's a video that explain everything with MTJ, relly powerfull

Similar Threads

  1. iPhone Blogger Blog Creation Application
    By semaphore10 in forum News and Announcements
    Replies: 4
    Last Post: 2009-10-06, 08:49
  2. Do Symbian rejects the Express Signing request on any Business Development ground?
    By arpit2agrawal in forum Symbian Signed Support, Application Packaging and Distribution and Security
    Replies: 23
    Last Post: 2009-02-19, 10:46
  3. Invalid Application in CDMA Mobiles
    By pmramprasath in forum Mobile Java General
    Replies: 12
    Last Post: 2007-08-06, 09:33
  4. Problem with Series 90 application icon
    By ManishPatil in forum Symbian
    Replies: 3
    Last Post: 2005-07-21, 11:49
  5. Series 60Series 60 MIDP Concept SDK Beta 0.2 Linux bug?
    By kauppi in forum Mobile Java Tools & SDKs
    Replies: 3
    Last Post: 2003-04-07, 09:05

Posting Permissions

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