×

Discussion Board

Results 1 to 6 of 6

Thread: jar jad things

  1. #1
    Registered User
    Join Date
    Oct 2007
    Posts
    48

    jar jad things

    i am developing for a while now, but i still did not understand what these files are.

    in the jad file there is the info what the jar file is.
    the jar file is the application.

    i always use the jar file for installation only. when do i need the jad?

  2. #2
    Super Contributor
    Join Date
    Oct 2007
    Location
    Deva, Romania
    Posts
    3,471

    Re: jar jad things

    Hi,

    The JAR file is the application itself and it contains the files that are packaged with the midlet.

    The JAD file is used to specify special attributes and information for the midlet. It isn't necessary for very simple midlets, but necessary for complex ones that use special APIs.

    See this article and the documentation for a detailed description. The wiki also has an example of setting attributes in JAD file.

  3. #3
    Regular Contributor
    Join Date
    Jul 2003
    Posts
    89

    Re: jar jad things

    Further to bogdan.galiceanu's reply to your question JAD will also be used when you want to install a signed application on the phone.
    In this case you will specify all the permissions in the JAD file that your application needs to have to avoid confirmation popups on the phone.

    Refer to Forum Nokia JaveME Developers Library which bogdan.galiceanu has also recommended to you.
    It is a very comprehensive resource for JavaME development. It also has implementation notes regarding various API which will help you create robust applications for Nokia devices.

  4. #4
    Registered User
    Join Date
    Sep 2007
    Location
    Bangalore
    Posts
    868

    Re: jar jad things

    Hi ,

    If you generate the jar file it will copies the required jad file properties into jar file(i.e manifest file) in jar , that's the reason you don't required for .jad for basic programing. if you are using signing and some higher apis , and if your jar has to downloaded through the jad file you need the jad file

    See the diff between jad and manifest file

    manifest.mf is stored as part of showProperties.jar:
    MIDlet-Name: Show Properties MIDlet
    MIDlet-Version: 1.0.1
    MIDlet-Vendor: My Corporation Inc.
    MIDlet-1: ShowProps, , showProperties
    MicroEdition-Profile: MIDP-1.0
    MicroEdition-Configuration: CLDC-1.0
    MIDlet-Description: A simple property list example


    Contents of showProperties.jad:

    MIDlet-Name: Show Properties MIDlet
    MIDlet-Version: 1.0.1
    MIDlet-Vendor: My Corporation Inc.
    MIDlet-Jar-URL: file://showProperties.jar
    MIDlet-Jar-Size: 1132
    MIDlet-1: ShowProps, , showProperties
    JadFile-Version: 1.5
    MIDlet-Data-Size: 500

    Hope it will Clear your doubt. You can extract your jar and you can see the manifest file in that

  5. #5
    Registered User
    Join Date
    Oct 2007
    Posts
    48

    Re: jar jad things

    thank you very much. i often read things like: the jad file give info for downloading, like jar size etc.... but in nowerdays the download size is not so important. plus: you are able to install the midlet without the jad.

    i asked me, beacause my application is downloadable to, but it is not very comfortable to download 2 files to your pc. so there is only the jar file.

    i am not able to make one file including jar and jad am i?

  6. #6
    Registered User
    Join Date
    Sep 2007
    Location
    Bangalore
    Posts
    868

    Re: jar jad things

    Hi,
    You can't make that. But The jar file will be having the manifest .mf file .

Similar Threads

  1. Making DRM content with jar and jad file
    By ilanchezhiank in forum Digital Rights Management & Content Downloading
    Replies: 1
    Last Post: 2007-08-06, 06:45
  2. How to use jad beside jar
    By techni in forum Mobile Java General
    Replies: 5
    Last Post: 2006-12-08, 06:35
  3. Replies: 4
    Last Post: 2003-09-10, 18:25
  4. About JAD and JAR files
    By simpleisgood in forum General Messaging
    Replies: 2
    Last Post: 2003-07-29, 02:31

Posting Permissions

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