1.首先去SUN的网站下载WTK2.2和它的补丁包,本来想去下载一个最新的2.5Beta,可是只有Windows版,没有Linux版的。我晕,SUN什么时候优先支持Windows了。
2.运行下载得到的文件j2me_wireless_toolkit-2_2-ml-linux-i386.bin,安装程序是控制台运行的,没有图形界面。首先是一个长长license声明,最后提示
Do you agree to the above license terms? [yes or no]
照例回答yes
3.然后安装程序会自动监测本机上安装的jdk
Testing /usr/local/jdk5/bin/java...
Testing /usr/bin/X11/java...
Exception in thread "main" java.lang.ClassFormatError: com.sun.kvem.environment.JavaVersionTester (unused data before end of file)
at java.lang.VMClassLoader.defineClass(libgcj.so.7)
at java.lang.ClassLoader.defineClass(libgcj.so.7)
at java.security.SecureClassLoader.defineClass(libgcj.so.7)
at java.net.URLClassLoader.findClass(libgcj.so.7)
at java.lang.ClassLoader.loadClass(libgcj.so.7)
at java.lang.ClassLoader.loadClass(libgcj.so.7)
at java.lang.Class.forName(libgcj.so.7)
at gnu.java.lang.MainThread.run(libgcj.so.7)
A suitable Java interpreter was detected
0) Use /usr/local/jdk5/bin/
1) Specify a path to a Java interpreter directory.
2) Cancel this installation.
Select a choice [0-2]:
我选择0,那是我原先安装的JDK的位置。
4.接下来提示选择安装目录
Please enter a directory into which you would like to install the J2me Wireless Toolkit, 2.2.
[ default is /home/infowain/install/WTK2.2 ]:
输入你希望安装的位置,我输入了/home/infowain//WTK2.2
5.接下来提示是否可以开始安装
Setup has enough information to start copying the program files.
Current Settings:
Destination Directory
/home/infowain/WTK2.2/
JVM Folder
/usr/local/jdk5/bin/
Please choose one of the following options:
0) Begin copying files if you are satisfied with the settings .
1) Cancel the installation.
Select a choice [0-1]:
我选择0,开始安装
6.最后提示
Extracting the installation files...
Documentation for the J2ME Wireless Toolkit version 2.2 is in the file
/home/infowain/WTK2.2/index.html
In order to start using the J2ME Wireless Toolkit, please run
/home/infowain/WTK2.2/bin/ktoolbar
表示安装成功,并回到控制台
7.接下来要安装补丁j2me_wireless_toolkit-2_2-update_1-ml-linux.zip,把补丁程序cp到/home/infowain/WTK2.2/
然后unzip j2me_wireless_toolkit-2_2-update_1-ml-linux.zip
如果提示是否覆盖文件,选择All
8.这样整个安装过程就结束了
9.接下来试试看安装是否成功
进入目录:cd /home/infowain/WTK2.2/bin/
执行程序:./ktoolbar
WTK的界面出现了,不过奇怪的是都是乱码

10.无奈只好去看看文档了/home/infowain/WTK2.2/index.html
总算得到一点提示,在WTK2.2/wtklib/Linux/ktools.properties文件里面增加一个参数:
wtk.locale = zh-CN
11.重新启动WTK,中文没有出现,编成英文的了,不过总比乱码强。总算可以开始J2ME了
2.运行下载得到的文件j2me_wireless_toolkit-2_2-ml-linux-i386.bin,安装程序是控制台运行的,没有图形界面。首先是一个长长license声明,最后提示
Do you agree to the above license terms? [yes or no]
照例回答yes
3.然后安装程序会自动监测本机上安装的jdk
Testing /usr/local/jdk5/bin/java...
Testing /usr/bin/X11/java...
Exception in thread "main" java.lang.ClassFormatError: com.sun.kvem.environment.JavaVersionTester (unused data before end of file)
at java.lang.VMClassLoader.defineClass(libgcj.so.7)
at java.lang.ClassLoader.defineClass(libgcj.so.7)
at java.security.SecureClassLoader.defineClass(libgcj.so.7)
at java.net.URLClassLoader.findClass(libgcj.so.7)
at java.lang.ClassLoader.loadClass(libgcj.so.7)
at java.lang.ClassLoader.loadClass(libgcj.so.7)
at java.lang.Class.forName(libgcj.so.7)
at gnu.java.lang.MainThread.run(libgcj.so.7)
A suitable Java interpreter was detected
0) Use /usr/local/jdk5/bin/
1) Specify a path to a Java interpreter directory.
2) Cancel this installation.
Select a choice [0-2]:
我选择0,那是我原先安装的JDK的位置。
4.接下来提示选择安装目录
Please enter a directory into which you would like to install the J2me Wireless Toolkit, 2.2.
[ default is /home/infowain/install/WTK2.2 ]:
输入你希望安装的位置,我输入了/home/infowain//WTK2.2
5.接下来提示是否可以开始安装
Setup has enough information to start copying the program files.
Current Settings:
Destination Directory
/home/infowain/WTK2.2/
JVM Folder
/usr/local/jdk5/bin/
Please choose one of the following options:
0) Begin copying files if you are satisfied with the settings .
1) Cancel the installation.
Select a choice [0-1]:
我选择0,开始安装
6.最后提示
Extracting the installation files...
Documentation for the J2ME Wireless Toolkit version 2.2 is in the file
/home/infowain/WTK2.2/index.html
In order to start using the J2ME Wireless Toolkit, please run
/home/infowain/WTK2.2/bin/ktoolbar
表示安装成功,并回到控制台
7.接下来要安装补丁j2me_wireless_toolkit-2_2-update_1-ml-linux.zip,把补丁程序cp到/home/infowain/WTK2.2/
然后unzip j2me_wireless_toolkit-2_2-update_1-ml-linux.zip
如果提示是否覆盖文件,选择All
8.这样整个安装过程就结束了
9.接下来试试看安装是否成功
进入目录:cd /home/infowain/WTK2.2/bin/
执行程序:./ktoolbar
WTK的界面出现了,不过奇怪的是都是乱码
10.无奈只好去看看文档了/home/infowain/WTK2.2/index.html
总算得到一点提示,在WTK2.2/wtklib/Linux/ktools.properties文件里面增加一个参数:
wtk.locale = zh-CN
11.重新启动WTK,中文没有出现,编成英文的了,不过总比乱码强。总算可以开始J2ME了