eclipse nokia j2me配置開發

<!-- /* Font Definitions */ @font-face {font-family:宋體; panose-1:2 1 6 0 3 1 1 1 1 1; mso-font-alt:SimSun; mso-font-charset:134; mso-generic-font-family:auto; mso-font-pitch:variable; mso-font-signature:3 135135232 16 0 262145 0;} @font-face {font-family:"/@宋體"; panose-1:2 1 6 0 3 1 1 1 1 1; mso-font-charset:134; mso-generic-font-family:auto; mso-font-pitch:variable; mso-font-signature:3 135135232 16 0 262145 0;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {mso-style-parent:""; margin:0cm; margin-bottom:.0001pt; text-align:justify; text-justify:inter-ideograph; mso-pagination:none; font-size:10.5pt; mso-bidi-font-size:12.0pt; font-family:"Times New Roman"; mso-fareast-font-family:宋體; mso-font-kerning:1.0pt;} /* Page Definitions */ @page {mso-page-border-surround-header:no; mso-page-border-surround-footer:no;} @page Section1 {size:612.0pt 792.0pt; margin:72.0pt 90.0pt 72.0pt 90.0pt; mso-header-margin:36.0pt; mso-footer-margin:36.0pt; mso-paper-source:0;} div.Section1 {page:Section1;} -->

首先是準備環境吧,

這裏 JDK(JRE), ECLIPSE, WTK, 這幾項就不多講了,直接安裝,網上說得也很多,我上一篇也說過,配置好之後,就可以模擬手機程序了,

 

說來很好笑,剛開始自己都是亂撞一起,裝了 SDK 版本都不知道用哪個,可能英語水平太低了。實在慚愧,直接下這裏的就 OK 了,其實很多地方的都是大同小異,都是同樣的效果,因爲,插件用到的就是那點點需要。

我的版本是 nS60_jme_sdk_3rd_e_FP1.zip ,解壓之後,一個安裝到 Eclipse 目錄下,一個是 netbean 的,還有一個是 SDK ,安裝即可,

當然這裏看你的要求了。

http://www.forum.nokia.com/Technology_Topics/Development_Platforms/Java.xhtml

 

由於自己是用的 Nokia ,所以這裏下了個模擬,想做這個開發來實踐下,斷斷續續的配置,今天終於還是能夠成功的運行了,不管怎麼樣,

還是有一點點收穫的。

 

這裏主要是關於兩個問題。 jar file could not be initialized failed to initialized session

下面是解決方案,有問題的,可以留言,一起解決。

 

自己遇到的問題,所有都拿出來了,呵呵,沒有一點保留,當然對大部分人是沒有用處的,不過對很小很小一小部分人,還是有所幫助的。

 

最開始遇到的問題

第一個問題

jar file could not be initialized

 

 

Windows -> Preferences -> J2ME -> Device Management

 

選擇 S60 device/emulator 後選 edit

 

在出現的 Basic 頁裏的 Launch Command Template

 

[%classpath %| - classpath "%classpath %"] 刪掉

 

但是出現了新的問題 == failed to initialized session

以下是備份

%executable% [%debugPort%|-Xdebug -Xrunjdwp:transport=dt_socket,suspend=y,server=y,address=%debugPort%] [%classpath %|-classpath "%classpath %"] -Xdevice :%device% [%jadfile %|"-Xdescriptor :%jadfile %"] [%verbose%|-Xverbose :%verbose%] [%heapsize %|-Xheapsize :%heapsize %] [%securityDomain%|-Xdomain :%securityDomain%] %userSpecifiedArguments% [%target%|%target%] [%otaurl %|-Xjam:transient=%otaurl %]

 

第二個問題

由第一個留下來的 failed to initialized session

 

 

首先在安裝目錄下找到

/bin/epoc32/tools/ecmt /config /config.properties 將你的 JRE 版本放到裏面,比如: epdt.java.version.start=1.4.1,1.4.2,1.5,5.0,1.6

 

其次是將運行方式改變:

s60 devices 變爲   s60 emulator

 

這裏雖然查了下網上的很多說法,不過的確有點匪夷所思的感覺,也許是以前沒有遇到過這樣的問題。或者是自己才接觸到新東西,所以纔會這樣?

想想,就拿第二個問題來說,根據報錯來看,完全可以解決掉,首先是設備和仿真的問題,是跟手機設備連接呢?還是電腦模擬仿真?這個顯而易見的。

可是自己爲什麼沒有解決掉?第一個路徑當然這裏不好說了,因爲自己還得繼續深造,呵呵,希望跟大家一起努力吧。

發佈了67 篇原創文章 · 獲贊 7 · 訪問量 25萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章