Cep Terminals GSM/GPRS TERMINAL CT63 JAVA 6203 User Manual

Product codes
6203
Page of 109
Java User’s Guide
9 Compile and Run a Program without a Java IDE
57
wm_java_usersguide_v19
Page 55 of 109
2012-01-27
Confidential / Released
9
Compile and Run a Program without a Java IDE
This chapter explains how to compile and run a Java application without a Java IDE. 
9.1
Build Results
A JAR file must be created by compiling an CMTK project. A JAR file will contain the class files 
and auxiliary resources associated with an application. A JAD file contains information (file 
name, size, version, etc.) on the actual content of the associated JAR file. It must be written by 
the user. The JAR file has the “.jar” extension and the JAD file has the “.jad” extension. A JAD 
file is always required no matter whether the module is provisioned with the Module Exchange 
Suite, as described in 
, or with OTA provisioning. OTA provisioning is described in 
In addition to class and resource files, a JAR file contains a manifest file, which describes the 
contents of the JAR. The manifest has the name manifest.mf and is automatically stored in the 
JAR file itself. An IMP manifest file for:
includes at least:
A JAD file must be written by the developer and must include at least:
A detailed description of these attributes can be found in 
.
package example.mytest;
public class MyTest extends MIDlet
Manifest-Version: 1.0
MIDlet-Name: MyTest
MIDlet-Version: 1.0.1
MIDlet-Vendor: Test Inc.
MIDlet-1: MyTest, example.mytest.MyTest 
MicroEdition-Profile: IMP-NG
MicroEdition-Configuration: CLDC-1.1
MIDlet-Name: MyTest
MIDlet-Version: 1.0.1
MIDlet-Vendor: Test Inc.
MIDlet-1: MyTest, example.mytest.MyTest
MIDlet-Jar-URL: http://192.168.1.3/datafiles/MyTest.jar
MIDlet-Jar-Size: 1408
MicroEdition-Profile: IMP-NG
MicroEdition-Configuration: CLDC-1.1