06 eclipse me

58
EclipseME Cornelius Koo 2005 [email protected]

Upload: corneliuskoo

Post on 01-Dec-2014

723 views

Category:

Technology


0 download

DESCRIPTION

 

TRANSCRIPT

Page 1: 06 Eclipse ME

EclipseME

Cornelius Koo – [email protected]

Page 2: 06 Eclipse ME

The Eclipse

• http://www.eclipse.org/

Page 3: 06 Eclipse ME

The Plugin

• http://eclipseme.org/

Page 4: 06 Eclipse ME
Page 5: 06 Eclipse ME
Page 6: 06 Eclipse ME
Page 7: 06 Eclipse ME
Page 8: 06 Eclipse ME
Page 9: 06 Eclipse ME
Page 10: 06 Eclipse ME
Page 11: 06 Eclipse ME

Create New Project

(MIDlet Suite)

Page 12: 06 Eclipse ME
Page 13: 06 Eclipse ME
Page 14: 06 Eclipse ME
Page 15: 06 Eclipse ME
Page 16: 06 Eclipse ME
Page 17: 06 Eclipse ME
Page 18: 06 Eclipse ME
Page 19: 06 Eclipse ME
Page 20: 06 Eclipse ME

Converting From

Existing Project

Page 21: 06 Eclipse ME
Page 22: 06 Eclipse ME

EclipseME JAD

Page 23: 06 Eclipse ME
Page 24: 06 Eclipse ME

Item Contents

Midlet Jar

URL

The URL from which the JAR file can be loaded.

Midlet Name The name of the MIDlet suite that identifies the MIDlets to the user. Individual

MIDlets can also have names. See the Midlets tab below for that information.

Midlet

Vendor

The organization that provides the MIDlet suite.

Midlet

Version

The version number of the MIDlet suite. The format is

<major>.<minor>.<micro> as described in the Java Product Versioning

Specification. the J2ME container can use this for install and upgrade

purposes, as well as for communication with the user.

Microedition

Configuration

The J2ME Configuration required by this MIDlet suite, using the same format

and value as the system property microedition.configuration. For CLDC 1.0

compatibility, this field must be CLDC-1.0. In the future, this field will be used

to specify the required CLDC version.

Microedition

Profile

The J2ME profile required by this MIDlet suite, using the same format and

value as the system property microedition.profiles. For the MIDP 1.0 release

the content of this field must be MIDP-1.0. In the future, this field will be used

to specify the required MIDP version.

Page 25: 06 Eclipse ME
Page 26: 06 Eclipse ME
Page 27: 06 Eclipse ME

Item Contents

Name Name of the MIDlet. If there are multiple MIDlets in your suite, when

the user invokes the suite, the J2ME device will

typically prompt the user for the specific MIDlet to be executed. This

entry provides the name that will be shown to the

user.

Icon Path to the PNG file within the JAR file that contains the icon for this

MIDlet.

Class The MIDlet class itself. This is the class you created derived from

javax.microedition.midlet.MIDlet.

Page 28: 06 Eclipse ME
Page 29: 06 Eclipse ME

Item Contents

Midlet Permissions Permissions that your MIDlet must have in order to

operate correctly. Permissions are usually only

provided for signed MIDlets.

Optional Midlet Permissions Permissions that your MIDlet would like, but can

work without.

Midlet Data Size The minimum number of bytes of persistent data

required by the MIDlet. The device may provide

additional storage according to its own policy. The

default is zero.

Midlet Description The description of the MIDlet suite.

Midlet Icon The name of a PNG file within the JAR file used to

represent the MIDlet suite. It is the icon used by the

Java Application Manager to identify the suite. This

icon is for the suite as a whole, as distinct from the

Individual MIDlet icons you can set up on the

Midlets Tab.

Midlet Information URL A URL for information further describing the MIDlet

suite.

Page 30: 06 Eclipse ME
Page 31: 06 Eclipse ME

Item Contents

Midlet Delete

Confirm

A text message provided to the user when prompted to

confirm deletion of the MIDlet suite.

Midlet Delete

Notify

The URL to which a POST request is sent to confirm

successful deletion of this MIDlet suite.

Midlet Install

Notify

The URL to which a POST request is sent to confirm

successful installation of this MIDlet suite.

Page 32: 06 Eclipse ME
Page 33: 06 Eclipse ME

Item Contents

Key The key string used to retrieve the value.

Value The value associated with the key.

Page 34: 06 Eclipse ME

Create New MIDlet

Page 35: 06 Eclipse ME
Page 36: 06 Eclipse ME
Page 37: 06 Eclipse ME
Page 38: 06 Eclipse ME
Page 39: 06 Eclipse ME

Running & Debugging

Page 40: 06 Eclipse ME
Page 41: 06 Eclipse ME
Page 42: 06 Eclipse ME
Page 43: 06 Eclipse ME

Packaging

Page 44: 06 Eclipse ME
Page 45: 06 Eclipse ME
Page 46: 06 Eclipse ME

Adding JAR Files

Page 47: 06 Eclipse ME

Hardware JARs are added via Platform Components configuration

Page 48: 06 Eclipse ME

Software JARs are added via Project Properties

Page 49: 06 Eclipse ME
Page 50: 06 Eclipse ME
Page 51: 06 Eclipse ME

Upload to Your Hand-

Phone

Page 52: 06 Eclipse ME

• In this tutorial, we are using Sony Ericsson

K700i to be an application container.

Page 53: 06 Eclipse ME
Page 54: 06 Eclipse ME
Page 55: 06 Eclipse ME
Page 56: 06 Eclipse ME
Page 57: 06 Eclipse ME
Page 58: 06 Eclipse ME

Reference

• Core J2ME Technology and MIDP. John

W. Muchow. Prentice Hall PTR, 2002.

• Enterprise J2ME: Developing Mobile

Java Applications. Michael Juntao Yuan.

Prentice Hall PTR, 2003.

• J2ME in A Nutshell. Kim Topley. Oreilly,

2002.

• EclipseME Help.