java 如何将 javax.microedition.lcdui 包安装到 Netbeans 中
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/4469977/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
how to install javax.microedition.lcdui package into Netbeans
提问by MJH
I am using NetBeans 6.9.1. When I try to
我使用的是 NetBeans 6.9.1。当我尝试
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;
he message "package javax.microedition.lcdui does not exist"
comes up.
how to solve it?(J2ME application)
tnx.
他的消息"package javax.microedition.lcdui does not exist"
出现了。如何解决?(J2ME 应用程序)tnx.
回答by ruben
First be sure that Java ME pack is installed correctly to your Netbeans IDE. To check this go to Tools>Plugins>Installed Tab. And also check if it is Active>
首先确保 Java ME 包已正确安装到您的 Netbeans IDE。要检查这一点,请转到工具>插件>已安装选项卡。并检查它是否处于活动状态>
回答by dangle1107
I solved that problem by changing the default platform for J2ME. First, I remove platform for J2ME, then I add new platform for J2ME as Sun Java(TM) Wireless Toolkit 2.5.2 for CLDC
我通过更改 J2ME 的默认平台解决了这个问题。首先,我删除了 J2ME 平台,然后我添加了新的 J2ME 平台作为 Sun Java(TM) Wireless Toolkit 2.5.2 for CLDC
回答by user4134558
You have to:
你必须:
- download
midp-2.1.jar
injava_ME_platform_SDK_8.0\lib
- in Netbeans right click on the project name and choose set configuation custumize
- click on Libraries and add JAR/FOLDER
- browse to
midp_2.1
and open and ok
- 下载
midp-2.1.jar
中java_ME_platform_SDK_8.0\lib
- 在 Netbeans 中右键单击项目名称并选择 set configuation custumize
- 单击库并添加 JAR/FOLDER
- 浏览
midp_2.1
并打开并确定
回答by Preyankar Biswas
Download midp-2.1.jar in java_ME_platform_SDK_8.0\lib
in Netbeans
. Right click on the project name and choose set configuration customize. Click on Libraries and add JAR/FOLDER. Browse to midp_2.1 and click open and ok.
在 java_ME_platform_SDK_8.0\lib 中下载 midp-2.1.jar Netbeans
。右键单击项目名称并选择设置配置自定义。单击库并添加 JAR/FOLDER。浏览到 midp_2.1 并单击打开并确定。