You Are Here:

Community: Developer Discussion Boards

#1 Old jar jad things - 2008-09-04, 12:20

Join Date: Oct 2007
Posts: 44
njk
Offline
Registered User
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?
Reply With Quote

#2 Old Re: jar jad things - 2008-09-04, 12:28

Join Date: Oct 2007
Posts: 2,841
Location: Deva, Romania
bogdan.galiceanu's Avatar
bogdan.galiceanu
Online
Forum Nokia Champion
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.
Reply With Quote

#3 Old Re: jar jad things - 2008-09-04, 12:47

Join Date: Jul 2003
Posts: 88
morash
Offline
Regular Contributor
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.
Reply With Quote

#4 Old Re: jar jad things - 2008-09-04, 16:16

Join Date: Sep 2007
Posts: 502
Location: Bangalore
bhanuchandar.k's Avatar
bhanuchandar.k
Offline
Forum Nokia Champion
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
Reply With Quote

#5 Old Re: jar jad things - 2008-09-05, 10:25

Join Date: Oct 2007
Posts: 44
njk
Offline
Registered User
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?
Reply With Quote

#6 Old Re: jar jad things - 2008-09-05, 11:23

Join Date: Sep 2007
Posts: 502
Location: Bangalore
bhanuchandar.k's Avatar
bhanuchandar.k
Offline
Forum Nokia Champion
Hi,
You can't make that. But The jar file will be having the manifest .mf file .
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules

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

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Forum Jump
Similar Threads
Thread Thread Starter Forum Replies Last Post
Making DRM content with jar and jad file ilanchezhiank Digital Rights Management & Content Downloading 1 2007-08-06 07:45
How to use jad beside jar techni Mobile Java General 5 2006-12-08 07:35
7650: "Unknown Response" after JAD download but before JAR download yeastess Mobile Java General 4 2003-09-10 19:25
About JAD and JAR files simpleisgood General Messaging 2 2003-07-29 03:31
about JAD and JAR files simpleisgood Web Technologies and Multimedia Content- Web 技术和多媒体内容 2 2003-07-29 03:25

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia