×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    May 2007
    Location
    Gap - France
    Posts
    44

    Install midlet over HTTP

    Hello,

    I'm trying to install the midlet I create on 6131 via HTTP.

    When the .jar file is uploaded on to the phone, it's seen as a .txt file :-(

    What I did:
    - setup my web server for mime type application/java-archive for .jar
    - drop my .jar application on the server
    - connect my phone to the link

    My phone prompt me to save the file to some folders, but never offer me to put it in the application one.

    Any clue?

    Thierry
    Last edited by tboufflet; 2007-09-17 at 15:34.

  2. #2
    Nokia Developer Moderator
    Join Date
    Nov 2006
    Location
    Helsinki
    Posts
    413

    Re: Install midlet over HTTP

    In addition to the .jar, also upload the .jad-file, add it to the MIME-types and try installing through it. This should work. The phone should then automatically recognize it as application.

    the MIME-types should be defined as follows: (on the server, .htaccess-file if it runs on Apache)

    AddType text/vnd.sun.j2me.app-descriptor jad
    AddType application/java-archive jar

  3. #3
    Registered User
    Join Date
    May 2007
    Location
    Gap - France
    Posts
    44

    Re: Install midlet over HTTP

    Thank you BloodRedsky, I've tryied what you said with no success.

    The addtypes on apache server with no problem.

    I upload the both file .jad et .jar on the server and download them with the 6131.

    When the .jad download is finished, it said "FILE FORMAT NOT SUPPORTED".

    If this can be usefull to help me: when the phone prompt me for the folder to save the downloaded files. It doesn't show me the application folder.

    Thanks in advance
    Last edited by tboufflet; 2007-09-17 at 16:18.

  4. #4
    Registered User
    Join Date
    Feb 2006
    Location
    Brazil
    Posts
    523

    Re: Install midlet over HTTP

    you've modified the mime.types file on Apache, adding the following extension types:

    text/vnd.sun.j2me.app-descriptor jad

    application/java-archive jar

    and even so the application can't be installed?

    There may be some problem with your jad file.Could you please post its contents here?

    Additionally, what if you try to download the jar file instead jad?Won't the application be installed properly either?


    best regards
    Http_user_agent:
    NokiaN80-1/3.0 (4.0707.0.7)
    Series60/3.0
    Profile/MIDP-2.0
    Configuration/CLDC-1.1

  5. #5
    Registered User
    Join Date
    May 2007
    Location
    Gap - France
    Posts
    44

    Thumbs up Re: Install midlet over HTTP

    Hello alb3530,

    thanks a lot for your help. I look at my .JAD file, and I found that it was looking for an image file as icon ressource, but the image was not present.

    I correct my .JAD file, put the image on the HTTP server and everything works :-P I'm really happy, that will help a lot in my application process.

    Best regards

    Thierry

    If this can help, this is my .JAD file:
    Code:
    MIDlet-1: RNDEF,RFIDlogo.png,RNDEF
    MIDlet-Icon: RFIDlogo.png
    MIDlet-Jar-Size: 5868
    MIDlet-Jar-URL: RNDEF.jar
    MIDlet-Name: RNDEF
    MIDlet-Vendor: Thierry Boufflet Perdigon SA
    MIDlet-Version: 1.0.0
    MicroEdition-Configuration: CLDC-1.1
    MicroEdition-Profile: MIDP-2.0

Similar Threads

  1. Install Midlet from different PCs
    By Kurt Johannes in forum Mobile Java General
    Replies: 1
    Last Post: 2007-02-11, 14:21
  2. 技术文档:MIDP 2.0安全机制 与 MIDlet 数字签名
    By wotrust in forum [Archived] Other Programming Discussion 关于其他编程技术的讨论
    Replies: 0
    Last Post: 2006-12-30, 07:42
  3. Nokia 6020 Http connection in a Midlet
    By dannyant in forum Mobile Java Networking & Messaging & Security
    Replies: 1
    Last Post: 2005-11-21, 07:29
  4. Midlet vanishes after HTTP request
    By rputhli in forum Mobile Java General
    Replies: 0
    Last Post: 2005-10-02, 23:56
  5. Replies: 0
    Last Post: 2002-09-19, 11:45

Posting Permissions

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