Linux下安裝WTK手記__Linux

來源:互聯網
上載者:User
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了




相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.