| 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
|
|
|