Java User’s Guide
10.1 Eclipse 3.1.2 (with ME Plugin 1.2.3)
71
s
wm_java_usersguide_v12 Page 71 of 123 2008-02-25
Confidential / Released
Step 4:
Create Jad and Jar file:
- Select “Project01”
- Open context menu of “Project01” and select Create Package from item J2ME
- Jad and Jar file are be created under the “deployed” directory (default setting of Eclipse)
Step 5:
Download Jad and Jar file into the Flash File System of the module and start the Java appli-
cation:
Manual download and start of Java application:
- Copy Jad and Jar files manually using MES (e.g MES Windows Explorer) into the module
- Start the Java application by using at command “AT^SJRA=a:/Project01.jar” (e.g. using
ASC1)
- The Java “System.out” is printed via ASC1 (default setting) and is displayed on terminal
programs (e.g. “Print this line.”).
Automatic download and start of Java application using IDE:
- Open the context menu of “printme.java” and select Emulated J2ME Midlet from item Run
As.
- The SMTK emulator downloads Jar and Jad file into the Flash File of the module (trans-
mission via MES port that was selected during installation) and automatically starts the
Java application.
- The Java “System.out” is printed via ASC1 (default setting) and is displayed on terminal
programs (e.g. “Print this line.”).
Further information about importing an existing Java project into Eclipse based on the “Hello
World” example is described in Section 11.3.2.7.