Problem with 'import' of 'javax.microedition' when using MIDP
Hi everyone,
I got into a problem with the compilation of the example
given at
http://developer.java.sun.com/developer/technicalArticles/wireless/midpgetstart/index.html
'FirstMIDlet.java'
I have 'j2mewtk' but when trying to compile the example I get errors for the compiler can not see the imported 'javax.microedition' package.
Dose some one have any idea what how I could overtake this problem.
Thank you.
St Stoev
[488 byte] By [
sincos] at [2007-9-26 1:20:47]

[sincos],
I just cut and paste the exact source code from:
http://developer.java.sun.com/developer/technicalArticles/wireless/midpgetstart/index.html
, and compiled the MIDlet using my copy of the J2ME Wireless Toolkit 1.0.3 BETA on a Solaris 7 machine and it works fine.
I am suspecting that your installation of the j2mewtk is not done correctly at all. Your installation is probably incomplete with the MIDP packages missing from the appropriate library directory i.e. <root dir of j2mewtk>/lib/midpapi.zip file should exist.
Can you post more information i.e.
(1) What is the operating system that you are working on?
(2) What version of the J2ME Wireless Toolkit are you using?
(3) Where is the .java source file placed? i.e. shd be in the directory <root dir of j2mewtk>/apps/FirstMIDlet/src/ directory and FirstMIDlet is the project name of the MIDlet you add as a new project using the J2MEWTK ktoolbar.
(4) Can you post more of the compilation error messages?
Allen Lai
Developer Technical Support
SUN Microsystems
http://www.sun.com/developers/support/