3

I get an error while using import javax.microedition.lcdui.*;

package javax.microedition.lcdui.* does not exist.

But the line import javax.microedition.midlet.MIDlet;

does not give any error.

Reshma CB
  • 61
  • 2
  • 8

1 Answers1

0

Imoprt lcdui jar file in your application library. You can download this jar file from here. Download Jar file

Altmish-E-Azam
  • 1,561
  • 1
  • 13
  • 24
  • i still get the error. I added the midp.jar to lib folder and used the import statement. – Reshma CB Dec 01 '14 at 06:23
  • share piece of import packages and full stacktrace of errors. – Altmish-E-Azam Dec 01 '14 at 06:55
  • The error:
    Compiling 1 source file to e:\jmeapp\JavaMEApplication12\build\classes e:\jmeapp\JavaMEApplication12\src\javameapplication12\JavaMEApplication12.java:9: error: package javax.microedition.lcdui does not exist import javax.microedition.lcdui.*; 1 error e:\jmeapp\JavaMEApplication12\nbproject\build-impl.xml:432: The following error occurred while executing this line: e:\jmeapp\JavaMEApplication12\nbproject\build-impl.xml:253: Compile failed; see the compiler error output for details. BUILD FAILED (total time: 1 second)
    The import statement import javax.microedition.lcdui.*;
    – Reshma CB Dec 02 '14 at 08:08
  • I suggest you create new project and move all source to new project and compile your code. **Note** Make sure you have added all library in you library path of project. – Altmish-E-Azam Dec 02 '14 at 09:24