File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java Micro Edition and the fly likes Testing my 1st MIDlet - Sams 21 days J2ME book Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Mobile » Java Micro Edition
Reply Bookmark "Testing my 1st MIDlet - Sams 21 days J2ME book" Watch "Testing my 1st MIDlet - Sams 21 days J2ME book" New topic
Author

Testing my 1st MIDlet - Sams 21 days J2ME book

Andrew Parker
Ranch Hand

Joined: Nov 12, 2001
Posts: 178
Hi,
I read the book: Sams - wireless J2ME in 21 days.
In chapter 4, there is a sample code like "hello world" applet. I followed its instruction to compile, pre-verify, packaging, jad, and test it.
I can run it with the kToolbarApp successfully (the emulator displayed).
However, when i run it on console mode.
Here is the emulator command:
java -cp e:\j2mewtk\wtklib\kvem.jar;e:\j2mewtk\wtklib\kenv.zip;
e:\j2mewtk\wtklib\lime.jar;Howdy.jar -Dkvem.home=e:\j2mewtk com.sun.kvem.midp.Main
DefaultGrayPhone -descriptor Howdy.jad
But, the emulator cannot be initialized. Why?
Pls advice.
Andrew
Andrew Parker
Ranch Hand

Joined: Nov 12, 2001
Posts: 178
May I ask you what does the setting of -Dkvem.home=e:\j2mewtk com.sun.kvem.midp.Main mean?
I don't have the dir com, sun, kvem, midp and main.
Thanks
Andrew
Wang Yi
Greenhorn

Joined: Jan 17, 2002
Posts: 8
-Dkvem.home=e:\j2mewtk means "set the system property kevm.home=e:\j2mewtk"
there is no folder like com, sun, kvem, etc. because the "com.sun.kvem.midp.Main" is in your "e:\j2mewtk\wtklib\kvem.jar"
I don't know how to solve your problem since I am not familiar with runing .jad file in the way you descripted.
 
 
subject: Testing my 1st MIDlet - Sams 21 days J2ME book
 
Threads others viewed
Urgent.........need suggestions on good book on J2ME
Confusion of the installation
SCMAD book?
Suggest J2ME Book
which book is better
developer file tools

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture