• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Testing my 1st MIDlet - Sams 21 days J2ME book

 
Andrew Parker
Ranch Hand
Posts: 178
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 178
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
-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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic