×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Nov 2004
    Posts
    6

    Application Not Supported???

    I am deploying a MIDlet to my Nk6100 via GPRS. I have placed the .jad and .jar in a folder on my server.

    When I attempt to download it the .jad opens perfectly but the .jar downloads and the the phone responds with 'Application not supported'.

    Is this to do with the way I have deployed the app or is it the packages I have imported?

    I have changed the URL in the .jad file to reflect the URL of the .jar file.

    I have imported the following packages:
    import javax.microedition.midlet.*;
    import javax.microedition.lcdui.*;
    import javax.microedition.io.*;
    import java.io.*;
    import javax.microedition.pim.*;
    import java.util.*;
    import javax.microedition.rms.*;

    The server is JBoss with a Tomcat container so I presume it already had a MIME type for .jar. Could this be a problem?

  2. #2
    Super Contributor
    Join Date
    Jun 2003
    Location
    Cheshire, UK
    Posts
    7,395
    I'd guess you have "MIDP-2" in your manifest? If so, change it to MIDP-1.

    Graham.

  3. #3
    Registered User
    Join Date
    Nov 2004
    Posts
    6
    Thanks Graham,

    You were close! I found the problem last night but didn't forgot to post up the solution. I had CLDC 1.1 instead of CLDC 1.0 in the manifest.

    I now have another error
    'Cannot create class in system package'

    Could this be caused by System.out calls?

  4. #4
    Registered User
    Join Date
    Nov 2004
    Posts
    6
    Found out what was causing that problem too.

    It was a class which was accessing the PIM of the phone.

    I have removed it for the moment.

    Thanks,

    Steve.

Posting Permissions

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