PDA

View Full Version : The difference bbetween .jad and .jar


Cata
09-24-2003, 03:04 PM
Many people ask: "Should I send both files to the phone?" Well, the answer is no. Here is why:

.jad = Java Application Descriptor File
It's no executable, it's just a bit of text to describe the application,
and where to find its JAR file.

Don't confuse the J2ME .jad (Java Application Descriptor File), with JAD (Joint Application Development)

.jar = Java Archive File
A production, packaged application will generally consist of many files. In addition to Java classes, other files such as images and application data, known as resources, may be part of the package. You bundle all this information together into a single entity, a JAR file.

More info:
http://www.onjava.com/pub/a/onjava/2001/04/26/midlet.html?page=1

In order to be more coherent: You only have to send the .jar file. That is the actual program file. You can forget the .jad. I'm not sure, but as far as I know te SE phones Java doess not even support .jad files.

.jad is supported by Nokia. If you put a .jad and a .jar on a site and put the URL of the .jad into the phone (Nokia), the .jad comes down in a moment, the phone asks you if you want to download the .jar, and that is it. But I haven't had a Nokia in 3 years, so... that's all I know.

Comments? :?:

Later edit:
Some of the Java games on this site are Nokia games, and may not even work with T610. Example: Prince of Persia. The games where you find both the .jad and the .jar files are usually Nookie (Nokia) games and won't work.