This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Java Micro Edition and the fly likes can't change from .class to .prc Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "can Watch "can New topic
Author

can't change from .class to .prc

vivi santa
Greenhorn

Joined: Feb 02, 2001
Posts: 26
hi
I follow the steps in the folling url
http://developer.java.sun.com/developer/technicalArticles/wireless/palm/
and try to build a simple palm application. I complied the class and preverify it, but failed to change it from .class file to .prc file.
I got the error below
C:\J2ME\j2me_cldc\bin>java -classpath ../lib/classes palm.database.MakePalmApp -
v -version "1.0" -icon icons/default.bmp -bootclasspath ../lib/class -classpath
classes HelloPalm
Exception in thread "main" java.lang.NoClassDefFoundError: palm/database/MakePal
mApp
could anyone give some guidence for me or in where can I get more resources on J2ME?
thanks in advances
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12759
    
    5
I think this one is simple. Your classpath does not include the base directory that has the palm/database/ subdirectory.
Therefore you get:
java.lang.NoClassDefFoundError: palm/database/MakePalmApp
 
jQuery in Action, 2nd edition
 
subject: can't change from .class to .prc
 
Similar Threads
j2me toolkit
What is a midlet
New Stuff on Sun's Site
Connecting to HttpServer
I can't compile HelloWorld...