• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Junilu Lacar
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Ganesh Patekar
  • Tim Moores
  • Pete Letkeman
  • Stephan van Hulst
Bartenders:
  • Carey Brown
  • Tim Holloway
  • Joe Ess

how to preverify?  RSS feed

 
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
 
ranger
Sheriff
Posts: 17314
11
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: 17314
11
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
 
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.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!