Siemens TC65 User's Guide Page 48

  • Download
  • Add to my manuals
  • Print
  • Page
    / 90
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 47
TC65 JAVA User's Guide
Strictly confidential / Released
s
TC65 JAVA User's Guide_V05 Page 48 of 90 26.09.2005
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 SMTK 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 Section 7.1, or with OTA provisioning. OTA
provisioning is described in Chapter 8.
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:
package example.mytest;
public class MyTest extends MIDlet
includes at least:
Manifest-Version: 1.0
MIDlet-Name: MyTest
MIDlet-Version: 1.0.1
MIDlet-Vendor: Siemens
MIDlet-1: MyTest, example.mytest.MyTest
MicroEdition-Profile: IMP-NG
MicroEdition-Configuration: CLDC-1.1
A JAD file must be written by the developer and must include at least:
MIDlet-Name: MyTest
MIDlet-Version: 1.0.1
MIDlet-Vendor: Siemens
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
A detailed description of these attributes and others can be found in the Java/MIDlet
documentation http://java.sun.com/j2me/docs/alt-html/WTK104_UG/Ap_Attributes.html
Page view 47
1 2 ... 43 44 45 46 47 48 49 50 51 52 53 ... 89 90

Comments to this Manuals

No comments