×

Discussion Board

Results 1 to 7 of 7
  1. #1
    Registered User
    Join Date
    Oct 2003
    Location
    Israel
    Posts
    17

    Invalid jar file

    Hi all!

    I have the following question..

    I have some valid jar file for installing it on Nokia 6230. Jar file contains text config file. I open jar file, change parameter in config file and update jar - and jar becomes invalid from the point of view of Nokia 6230. But I need it to be valid..
    How to do it?

    Thanks in advance. Irina.

  2. #2
    Super Contributor
    Join Date
    Mar 2003
    Location
    Israel
    Posts
    2,280
    If the size of the jar changed then those changes need to be reflected in the jar size parameters on the jad and the manifest.

    shmoove

  3. #3
    Registered User
    Join Date
    Oct 2003
    Location
    Israel
    Posts
    17
    Installation on Nokia 6230 through PC suite doesn't require jad file. And manifest in my jar does not contain jar size.

    Irina.

  4. #4
    Super Contributor
    Join Date
    Mar 2003
    Location
    Israel
    Posts
    2,280
    How are you repackaging the jar? Some "zippers" cause problems on certain phones (although I must say I never ran into this on Nokia phones).

    shmoove

  5. #5
    Registered User
    Join Date
    Oct 2003
    Location
    Israel
    Posts
    17
    WinZip asks whether to update archive and I choose 'Yes'.

  6. #6
    Super Contributor
    Join Date
    Mar 2003
    Location
    Israel
    Posts
    2,280
    Try packing it the "Java way" using the jar utility. Or at least unpack and repack the jar completely with Winzip, instead of updating the jar from within the application. This is just a hunch but it might be doing something screwy.

    shmoove

  7. #7
    Super Contributor
    Join Date
    Jun 2003
    Location
    Cheshire, UK
    Posts
    7,395
    I know the Application Installer doesn't ask you to select a JAD, but I suspect it still needs it, and still installs it to the phone. Have you tried updating the JAD, just to rule this out?

    Graham.

Posting Permissions

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