×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    May 2005
    Location
    china, guangzhou
    Posts
    4

    invalid file error plz help

    hello. i'm a developer live in china.

    i made some sample application at nokia platform.

    I test a game at nokia hanset 6108( midp 1.0 ) by bluetooth, infrared cable. it was ok.

    but when i try to test by web server. 'invalid file' error keep happening.

    I try to fix it by myself but now i almost give up. plz help.

    jad and manifest files are below.

    jad file
    MIDlet-1: test01,/res/player0.png,test01
    MIDlet-Name: test01
    MIDlet-Vendor: ot
    MIDlet-Version: 1.0.0
    MIDlet-Icon: /res/player0.png
    MIDlet-Jar-URL: test01.jar
    MIDlet-Jar-URL: ./test01.jar
    MIDlet-Jar-URL: http://211.162.247.67/test01.jar
    MIDlet-Jar-Size: 12873
    MicroEdition-Profile: MIDP-1.0
    MicroEdition-Configuration: CLDC-1.0

    manifest file
    MIDlet-1: test01,/res/player0.png,test01
    MIDlet-Description: ot
    MIDlet-Icon: /res/player0.png
    MIDlet-Name: test01
    MIDlet-Vendor: ot
    MIDlet-Version: 1.0.0
    MIDletX-No-Command: true
    MicroEdition-Profile: MIDP-1.0
    MicroEdition-Configuration: CLDC-1.0


    i already tested without thest 2 lines.
    MIDlet-Jar-URL: test01.jar
    MIDlet-Jar-URL: ./test01.jar
    but still have problem.

    (i'm using apache for wap server, so you can't not download jar file when my computer is offline)

    thank you for reading.

  2. #2
    Super Contributor
    Join Date
    Nov 2003
    Location
    Bangalore , India
    Posts
    4,429
    Hi skeptic9, Welcome to Nokia Discussion Boards!!

    Please place the mime types for JAR/JAD file in your server config :
    Hope that may solve your problem.

    regards
    Gopal

  3. #3
    Registered User
    Join Date
    May 2005
    Location
    china, guangzhou
    Posts
    4

    i already set mime type

    thank you for your reply.

    i alreay setting my wap server.
    ( text/vnd.sun.j2me.app-descriptor jad )

    it's ok until start downloading jar file.

    i can see this message.

    Name : test01
    Version : 1.0.0
    Size : 16KB
    Vender : OT
    ....

    then i choose yes, it start download.. then "INVALID FILE"

    is my jad and manifest file is ok?

  4. #4
    Super Contributor
    Join Date
    Jun 2003
    Location
    Cheshire, UK
    Posts
    7,395
    You need the right MIME type for the JAR too...

    Graham.

  5. #5
    Registered User
    Join Date
    May 2005
    Location
    china, guangzhou
    Posts
    4

    thank you everybody

    i jut put this text to mime file. now it's ok

    application/java-archive jar


    thank you very much.
    Have a good day ~

Posting Permissions

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