Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to preverify?

 
jasmine keh
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i saw an article on Java 2ME and MIDP Development i follow the instructions but when i come to Preverify the class file i use the code given as preverify -classpath c:\j2me\midp-fcs\classes;. -d . firstMIDlet but it show me Error loading class firstMIDlet
can anyone tell me where i goes wrong?
thanks
the article is on http://www.onjava.com/pub/a/onjava/2001/03/22/j2me_wireless.html
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You could always use the Wireless Toolkit from Sun. It does all the pre and compile stuff for you with one click of a button.

Mark
 
jasmine keh
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
but can anyone tell how to use the Wireless toolkit? i have no ideas how to use it.
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Actually it only looks intimidating, and is quite easy.

The Toolkit has a KToolbar, run that. If a new project, click the New Project button. All your code will go into the \(WIRELESS_TOOLKIT_DIR)\apps\yourProject\src.

So anytime after that you open up the KToolbar you can click the Open Project button and select your project from the list.

Now anytime you want to test and run it or just compile, then you click the compile button.

If you already have code, then create a new project, and copy your code into the \(WIRELESS_TOOLKIT_DIR)\apps\yourProject\src directory.

Mark
 
Layne Lund
Ranch Hand
Posts: 3061
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by jasmine keh:
i saw an article on Java 2ME and MIDP Development i follow the instructions but when i come to Preverify the class file i use the code given as preverify -classpath c:\j2me\midp-fcs\classes;. -d . firstMIDlet but it show me Error loading class firstMIDlet
can anyone tell me where i goes wrong?
thanks
the article is on http://www.onjava.com/pub/a/onjava/2001/03/22/j2me_wireless.html


As for the error when you do this on the command line, you should be sure that you styped the name of the class correctly. Usually classes start with uppercase. Did you just mistype that here or does the class really start with a lower case letter? Also, does the class live in a package? If so you need to run this command from the folder that contains the folder for that package. You also need to spcify the fully qualified class name, iirc.

I hope this helps.

Layne
 
jasmine keh
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks for teaching me how to use the wireless toolkit, but now i have another problem. the wireless toolkit will produce a .jad file after i created, but how to change to a .jar file which will suit for hotsync to my palm? thanks.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic