Thursday, July 30, 2009

Compilation errors?

I`m just starting with java, and want to build an application with J2ME I`ve installed SDK 1.4.2 and Wireless toolkit 2.2 When i run an example in WTK 2.2 it goed ok, but when i run a tutorial app from a website, or


compile a download file via textpad i get: in WTK 2.2: Uncaught exception java/lang/NoClassDefFoundError: welcome. in Textpad C:\WTK22\apps\Welcome\src\Welcome.java:8... package javax.microedition.midlet does not exist import javax.microedition.midlet.*;


plz can anyone help me in solving these errors

Compilation errors?
it looks like some packages weren't downloaded with everything else. Did you check to see if there is a package called javax.microedition.midlet in what you downloaded?
Reply:Check your classpath and path environment variables.


Your CLASSPATH env. var should point to wherever your class tree starts.
Reply:If you try to evaluate an expression containing a compilation error, it will be reported in the scrapbook editor.





For example, type and select the (invalid) expression System.println("hi") in the editor and click Execute in the toolbar.





The error message The method println(java.lang.String) is undefined for the type java.lang.System appears in the editor at the point of the error.

salary survey

No comments:

Post a Comment