Your SlideShare is downloading. ×
0
J2ME WTKCommand Line       Cornelius Koo – 2005        cornelius.mellino@gmail.com
First Step• Make sure the PATH environment variable  pointing to C:WTK20bin.
Compilation1. Make sure these directory are exists :   tmpclasses – to hold unverified class   classes – to hold verified ...
Compilation[option] :  -d <output directory><files> :  list of source files separated by spaces
Compilation
Preverifying• Syntax :  preverify [options] <files | directories>
Preverifying<files | directory>  a list of one or more files or directory  separated by spaces-classpath <classpath>  Spec...
Preverifying-d <output directory>  output directory where the verified files will  be saved, this directory must be specif...
Preverifying
Packaging1. Creating manifest file, see MIDP   presentation slide.2. Syntax :   jar cfm <file> <manifest>   -C <class_dire...
Packaging<file>  File JAR to create<manifest>  Manifest file for the MIDlets<class_directory>  The directory containing ap...
Packaging
Packaging• Creating JAD file manually, please refer to  MIDP presentation slide.
Running Emulator• emulator [options]
Running Emulator-help-version-Xquery  Print device information on the standard  output stream and exit immediately.
Running Emulator
Reference• WTK User Guide. SUN Microsystem,  2003.
Upcoming SlideShare
Loading in...5
×

05 J2ME Wtk Command Line

420

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
420
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
2
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Transcript of "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.
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×