×

Discussion Board

Results 1 to 9 of 9
  1. #1
    Registered User
    Join Date
    May 2005
    Location
    Skelleftea
    Posts
    26

    "Invalid file" error on Nokia 6600 on installation

    Hi,

    I'm trying to install a .jar file that I've created using the Wireless Toolkit 2.2. When I've transferred the .jar file and started the installation, the phone tells me "Unable to install. Invalid file.". I can't seem to find the cause for this. This is my manifest file:

    MIDlet-1: HelloMIDlet, , HelloMIDlet
    MIDlet-Name: Hello
    MIDlet-Description: A nice program.
    MIDlet-Info-URL: 213.199.93.63
    MIDlet-Vendor: David Renström
    MIDlet-Version: 0.1
    MicroEdition-Configuration: CLDC-1.0
    MicroEdition-Profile: MIDP-2.0

    I use the following command to create the .jar file:
    jar cfm myfile.jar myfile.mf -C .\ .

    Please someone, tell me what could be wrong.

    Thanks,
    /David R.

  2. #2
    Registered User
    Join Date
    Dec 2005
    Posts
    4

    Re: "Invalid file" error on Nokia 6600 on installation

    create your jar file using ant and buil.xml provided by nokia (you can find it in examples folder of s60 emulator), and it will work. I can't understand what is differense but it realy works...

    Or you can simply remove the content of the nokia's sample .jar files and put your own .class-es into it, it will work again...

    If you could understand differense please tell me ))
    Last edited by arso; 2006-01-10 at 15:56.

  3. #3
    Regular Contributor
    Join Date
    Jul 2005
    Location
    Omaha, US
    Posts
    129

    Re: "Invalid file" error on Nokia 6600 on installation

    Hi,
    I was facing the same problem with Nokia 3230 when built the jar file from WTK2.2. The problem solved after creating jar from NetBeans mobility pack. I dont know what difference does it make.

    --Prashant

  4. #4
    Registered User
    Join Date
    May 2005
    Location
    Skelleftea
    Posts
    26

    Re: "Invalid file" error on Nokia 6600 on installation

    Hi folks,

    I think that I've tracked down the tiny difference. It's as silly as it can possibly be! When I paged through the manifest file for the s60examples.jar archive I noticed two blank lines at the end. So, I tried adding a single blank line at the end of mine and voil! Now it works perfectly. Thus, the rule is not to leave an attribute at the last line, but putting a blank line at the end instead. I'd consider this a bug, but that's me. Hopefully, your problems are caused by the same reason.

    Regards,
    /David R.

  5. #5
    Registered User
    Join Date
    May 2006
    Posts
    3

    Re: "Invalid file" error on Nokia 6600 on installation

    Hi,

    I'm having the same strange problem.

    Any idea how I can do it for Eclipse and Carbide J to ensure that the manifest file has 2 blank lines?

    Tks.

  6. #6
    Regular Contributor
    Join Date
    Jul 2005
    Location
    Omaha, US
    Posts
    129

    Re: "Invalid file" error on Nokia 6600 on installation

    Have u tryed building with Eclipse /carbide? Are u getting the same problem? If yes the simple way is to open the pplication jar after creation and edit menifest and create jar with the edited menifest...

  7. #7
    Registered User
    Join Date
    May 2006
    Posts
    3

    Re: "Invalid file" error on Nokia 6600 on installation

    Hi,

    I can't edit the manifest file form the Eclipse/Carbide environment so I can't add the 2 blank spaces at the end.

    Any suggestions please?

    Tks.

  8. #8
    Super Contributor
    Join Date
    Mar 2006
    Posts
    516

    Re: "Invalid file" error on Nokia 6600 on installation

    Hi Zuraimeie,

    Take ur final packaged jar file u get after building. Open it in "winrar" file. Open the manifestfile in notepad. add the two blank lines. Save it.


    Wang

  9. #9
    Registered User
    Join Date
    Jul 2006
    Posts
    2

    Re: "Invalid file" error on Nokia 6600 on installation

    Hi there,

    I had this problem with on the Nokia N70 - turned out the issue was that I didn't have a space after the attribute names in my JAD file.

    For example, if you have the following JAD file:

    MIDlet-Icon: /icon.png
    MicroEdition-Configuration: CLDC-1.0
    MIDlet-Version: 1.0.0
    MIDlet-Vendor:Test
    MIDlet-Name:My Test Midlet
    MIDlet-Data-Size: 100
    MicroEdition-Profile: MIDP-1.0

    Note that the two lines highlighted DO NOT have a space after the semi-colon (. By inserting a space, I was able to download the midlet successfully.

    Hope this solves your problems,

    Regards,

    Sam

Similar Threads

  1. SMS archive from NOKIA 3650 to Nokia 6600
    By radiodj105 in forum General Development Questions
    Replies: 1
    Last Post: 2005-09-04, 18:34
  2. Nokia 6600 as a modem
    By irohit in forum Symbian Networking & Messaging (Closed)
    Replies: 0
    Last Post: 2004-11-18, 01:01
  3. Nokia 6600 questions
    By peterxrogers in forum Mobile Java General
    Replies: 1
    Last Post: 2004-08-04, 15:45
  4. JAD installation suddenly crashes on Nokia 6600
    By pemag in forum Mobile Java General
    Replies: 1
    Last Post: 2004-02-09, 15:51

Posting Permissions

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