| Reply | « Previous Thread | Next Thread » |
|
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? |
|
Join Date: Oct 2007
Posts: 2,841
Location: Deva, Romania
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. |
|
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. |
|
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 |
|
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? |
|
Hi,
You can't make that. But The jar file will be having the manifest .mf file . |
| Reply | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|
| 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 |