How to install javax.microedition.lcdui package on Netbeans

I am using NetBeans 6.9.1. When i try

import javax.microedition.lcdui.Command; import javax.microedition.lcdui.CommandListener; import javax.microedition.lcdui.Display; import javax.microedition.lcdui.Displayable; import javax.microedition.lcdui.Form; import javax.microedition.lcdui.Image; import javax.microedition.lcdui.ImageItem; 

The message "package javax.microedition.lcdui does not exist" appears. how to solve it? (J2ME application) Thp.

+4
source share
4 answers

First, make sure that the Java ME package is installed correctly in NetBeans. To verify this, go to Tools> Plugins> Installed Tab. And also check if it is active> alt text

+1
source

I solved this problem by changing the default platform for J2ME. First, I remove the platform for J2ME, and then add the new platform for J2ME as Sun Java (TM) Wireless Toolkit 2.5.2 for CLDC

+1
source

You must:

  • download midp-2.1.jar in java_ME_platform_SDK_8.0\lib
  • in Netbeans, right-click on the project name and select setbuilding custumize
  • click on libraries and add JAR / FOLDER
  • find midp_2.1 and open and ok
0
source

Download midp-2.1.jar to java_ME_platform_SDK_8.0 \ lib in Netbeans . Right-click the project name and choose Configure. Click Libraries and add JAR / FOLDER. Go to midp_2.1 and click "Open" and "OK."

0
source

Source: https://habr.com/ru/post/1332487/


All Articles