package javax.microedition.midlet.*; does not exist

im just getting into j2me programming via command line
im having problem with trying to compile a simple midlet

i get the following error message
package javax.microedition.midlet.*; does not exist

i thought it might be because it cant seem to find the classes

so i set the classpath with the dir and the lib folder that have the
j2me classes in

but no luck…
any ideas…?

what is the commandline you are executing javac with?

javac MIDLetTest.java

source is…

import javax.microedition.midlet.*;

public class MIDLetTest extends MIDLet
{
public MIDLetTest()
{
}
}

You have mis-named your super class.

The correct name is :- MIDlet

The correct commandline would be something like :-

javac -cp c:\wtk23\lib\midpapi20.jar *.java

I recommend you use an IDE such as eclipse (along with the eclipseME plugin).
Once setup correctly, you won’t have to worry about classpaths again - and you won’t ever mis-name a class.

just to say a big thank you for helping me… that -cp bit worked a treat…i hopefully can return the favour one day… thanks agaian ;D