JavaME环境配置

1.使用eclipse使用3.7.0版本

eclipse版本说明

版本号

代码

日期

下载地址

Eclipse 3.1

IO[木卫一,伊奥]

2005

http://archive.eclipse.org/eclipse/downloads/drops/R-3.1-200506271435/

Eclipse 3.2

Callisto[木卫四,卡里斯托]

2006

http://archive.eclipse.org/eclipse/downloads/drops/R-3.2-200606291905/

Eclipse 3.3

Eruopa[木卫二,欧罗巴]

2007

http://www.eclipse.org/downloads/packages/release/europa/winter

Eclipse 3.4

Ganymede[木卫三,盖尼米德]

2008

http://www.eclipse.org/downloads/packages/release/ganymede/r

Eclipse 3.5

Galileo[伽利略]

2009

http://www.eclipse.org/downloads/packages/release/galileo/r

Eclipse 3.6

Helios[太阳神]

2010

http://www.eclipse.org/downloads/packages/release/helios/r

Eclipse 3.7

Indigo[靛青]

2011

http://www.eclipse.org/downloads/packages/release/indigo/r

Eclipse 4.2

Juno[朱诺]

2012

http://www.eclipse.org/downloads/packages/release/juno/r

Eclipse 4.3

Kepler[开普勒]

2013

http://www.eclipse.org/downloads/packages/release/kepler/r

Eclipse 4.4

Luna[月食]

2014

http://www.eclipse.org/downloads/packages/release/luna/r

Eclipse 4.5

Mars[火星]

2015

http://www.eclipse.org/downloads/packages/release/mars/r

Eclipse 4.6

Neon[霓虹灯]

2016

http://www.eclipse.org/downloads/packages/release/neon/r

Eclipse 4.7

Oxygen[氧气]

2017

http://www.eclipse.org/downloads/packages/release/oxygen/r

Eclipse 4.8

Phton[光子]

2018

http://www.eclipse.org/downloads/packages/release/photon/r

   

2.使用wtk2.5.2版本(注意该版本为32位,jvm必须使用32位版,配置是选择jvm32位版路径,不然会报错)

3.安装jdk(可以同时安装32位和64位版)

JavaME环境配置

4.安装wtk

自动搜索到32位的jdk

JavaME环境配置

配置wtk安装路径,完成

JavaME环境配置

5.配置eclipse

填写wtk安装路径

JavaME环境配置

配置驱动路径,

Device Management填写wtk安装路径

JavaME环境配置

完成

JavaME环境配置

6.第一个程序

创建项目

JavaME环境配置

src目录创建

JavaME环境配置

import javax.microedition.midlet.MIDletStateChangeException;

public class HelloJ2me extends MIDlet {
        Form form = new Form("HelloJ2me");
        Display display = Display.getDisplay(this);
        public HelloJ2me() {
                // TODO Auto-generated constructor stub
        }

protected void destroyApp(boolean arg0) throws MIDletStateChangeException {
                // TODO Auto-generated method stub

}

protected void pauseApp() {
                // TODO Auto-generated method stub

}

protected void startApp() throws MIDletStateChangeException {
                form.append("HelloJ2me");
                display.setCurrent(form);

}

}

运行程序

JavaME环境配置

7.其他问题

报错:

Can't load IA 32-bit .dll on a AMD 64-bit platform

问题所在:

主要是在64位的系统下安装的虚拟机是64位的,而WTK的sublime.dll不能在64位的平台下加载64位的虚拟机,只能加载32位的。由于WTK在安装的时候加载的64虚拟机的地址,它找到的是64位的虚拟机,所以它提示不能加载32位的虚拟机(在目录下没有32的虚拟机)

解决办法:

查看jdk安装的是否是32位版,wtk选择的jdk是否是32位版,二者都必须是32位版

   

   

   

上一篇:sqlalchemy在python中的使用(使用Alembic做数据迁移)五


下一篇:Python-Alembic迁移错误烧瓶