05 J2ME Wtk Command Line

594 views

Published on

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
594
On SlideShare
0
From Embeds
0
Number of Embeds
3
Actions
Shares
0
Downloads
3
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

05 J2ME Wtk Command Line

  1. 1. J2ME WTKCommand Line Cornelius Koo – 2005 cornelius.mellino@gmail.com
  2. 2. First Step• Make sure the PATH environment variable pointing to C:WTK20bin.
  3. 3. Compilation1. Make sure these directory are exists : tmpclasses – to hold unverified class classes – to hold verified class2. Syntax : javac [option] –bootclasspath {j2mewtk.dir}libmidpapi.zip <files>
  4. 4. Compilation[option] : -d <output directory><files> : list of source files separated by spaces
  5. 5. Compilation
  6. 6. Preverifying• Syntax : preverify [options] <files | directories>
  7. 7. Preverifying<files | directory> a list of one or more files or directory separated by spaces-classpath <classpath> Specify the directories of the JAR file (separated by semicolon) from which the class are loaded.
  8. 8. Preverifying-d <output directory> output directory where the verified files will be saved, this directory must be specified.
  9. 9. Preverifying
  10. 10. Packaging1. Creating manifest file, see MIDP presentation slide.2. Syntax : jar cfm <file> <manifest> -C <class_directory> . <resource_directory>
  11. 11. Packaging<file> File JAR to create<manifest> Manifest file for the MIDlets<class_directory> The directory containing application’s classes<resource_directory> The directory containing application’s resources
  12. 12. Packaging
  13. 13. Packaging• Creating JAD file manually, please refer to MIDP presentation slide.
  14. 14. Running Emulator• emulator [options]
  15. 15. Running Emulator-help-version-Xquery Print device information on the standard output stream and exit immediately.
  16. 16. Running Emulator
  17. 17. Reference• WTK User Guide. SUN Microsystem, 2003.

×