English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

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

2006-08-31 05:39:38 · 3 answers · asked by sahithi 1 in Computers & Internet Programming & Design

3 answers

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?

2006-08-31 05:44:24 · answer #1 · answered by John J 6 · 0 0

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.

2006-08-31 21:01:17 · answer #2 · answered by Anonymous · 0 0

Check your classpath and path environment variables.
Your CLASSPATH env. var should point to wherever your class tree starts.

2006-08-31 14:30:46 · answer #3 · answered by SA 1 · 0 0

fedest.com, questions and answers