×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    May 2008
    Posts
    28

    Device cannot find the Manifest in JAR file

    Hello, one user of my application gets this error while installing the jar file:

    "Fail to load Main-Class manifest attribute
    from .... download mySoftware.jar

    How can I help him? Maybe he needs also the jad file? Or maybe this is because the file is obfuscated and the obfuscator changed something and the JVM cannot find the manifest? Or maybe I should tell him to install it OTA from our server?

    Does anybody know the solution? Thanks

  2. #2
    Nokia Developer Champion
    Join Date
    Nov 2007
    Location
    Rome, Italy
    Posts
    2,405

    Re: Device cannot find the Manifest in JAR file

    Hi Rambajzek,

    on which device is your user experiencing this issue?

    Also, try posting manifest content, to be sure that all the required attributes have been specified.

    Pit

  3. #3
    Nokia Developer Champion
    Join Date
    Apr 2003
    Location
    USA, CA
    Posts
    7,192

    Re: Device cannot find the Manifest in JAR file

    First, check the JAR file. Do you have the manifest file inside the JAR file? It must have.

    So you can create it manually and add it in the JAR file, or then you could use some IDE, which does it automatically (like NetBeans)

    Hartti

  4. #4
    Registered User
    Join Date
    May 2008
    Posts
    28

    Re: Device cannot find the Manifest in JAR file

    There is MANIFEST.MF file in folder META-INF. Its like this:

    Manifest-Version: 1.0
    MicroEdition-Configuration: CLDC-1.0
    MIDlet-Name: MySoftware
    Created-By: 1.5.0_06 (Sun Microsystems Inc.)
    MIDlet-Vendor: Unknown
    MIDlet-1: MySoftware, MySoftware.png, MySoftware
    MIDlet-Version: 2.0
    MicroEdition-Profile: MIDP-2.0



    The users device is HTC X7510 with Windows mobile. I developed it for Nokia, but usually it runs on every mobile phone, no matter if Symbian, Blackberry or something else.

    Maybe he makes some mistake while installing the file, could it help if he installs it from server, OTA, so the installation would be automatical?

Similar Threads

  1. how to run jar file in device
    By mobileRock in forum Mobile Java General
    Replies: 2
    Last Post: 2007-11-28, 09:39
  2. Bluetooth Security: What exactly is an untrusted device?
    By rahulmcs in forum Bluetooth Technology
    Replies: 1
    Last Post: 2005-12-02, 06:26
  3. Replies: 1
    Last Post: 2005-05-26, 14:22
  4. Nokia Image Converter
    By davidpurdie in forum General Development Questions
    Replies: 0
    Last Post: 2004-02-18, 15:31
  5. Replies: 0
    Last Post: 2002-06-10, 12:24

Posting Permissions

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