




版權說明:本文檔由用戶提供并上傳,收益歸屬內容提供方,若內容存在侵權,請進行舉報或認領
文檔簡介
1、JavaME開發(fā)手機程序1.選擇一種開發(fā)語言1Symbian C+QtWeb RuntimeJavaFlash Lite2. 選擇一種開發(fā)環(huán)境IDE2NetBeans with Mobility packEclipseMEMobile Tools for Java (MTJ)3.選擇一種Platform SDK3Series 40 platformSymbian S60我的開發(fā)環(huán)境LanguageJava+JavaMEIDEEclipse+MTJplatform SDKS60 5th edi1)JDK 6 Update 12http:/ Java Wireless Toolkit for CL
2、DC(Java ME SDK 3.0)http:/ SymbianOS/S60 SDK for Javahttp:/ 下載dsdp-mtj-SDK-1.0.1.zip,將該壓縮包里features和plugins里的所有文件相應拷貝到eclipse的features和plugins目錄下配置開發(fā)環(huán)境4配置Eclipse4Select the menu item Window | Preferences. Expand node J2ME and select Device Management. In the settings section of the dialog, press Impo
3、rt. In the new dialog, browse for the directory C:S60devicesS60_3rd_MIDP_SDK_FP2_Beta. Click Refresh. Make sure the S60Emulator and S60Device devices checkboxes are both checked. Press Finish. Press Import again. In the new dialog, browse for the directory C:WTK2.5.2 (or wherever you installed the W
4、ireless Toolkit). Click Refresh. Make sure all the four devices checkboxes are checked. Press Finish. Back in the main dialog, select DefaultColorPhone as the default device. (Selecting the S60Emulator choice will cause running a MIDlet to fail.) Back in the main dialog, press OK. 注意事項 安裝Nokia Symbi
5、anOS/S60 SDK for Java前需先安裝ActivePerl-35-MSWin32-x86.msi另外,因為FAT32格式每個目錄下的文件和子目錄數(shù)有限,SymbianOS/S60 5th edition SDK正好有部分目錄超出了這個限制,所以如果C盤為FAT32格式則無法安裝此程序 C盤必須為NTFS格式。Nokia官網(wǎng)說支持的系統(tǒng)為Windows XP SP2和Vista,但經過測試,Windows7 Professional上也可以安裝。使用Eclipse創(chuàng)建Midlet程序51Create a new project 2Create a new MIDlet
6、 3Write MIDlet code4Create a deployment packageCreate a new project5 Select the menu item File | New | Project. Expand node J2ME and select J2ME Midlet Suite. Press Next. Give the project name HelloWorld. Press Next. Select Sun Java(TM) Wireless Toolkit 2.5.2 for CLDC and DefaultColorPhone. (Selecti
7、ng S60 3rd Edition FP2 SDK for MIDP and S60Device will cause running the MIDlet to fail, with an dialog displayed, saying that the Jar file could not be initialized because of a caught exception.) Press Next. In tab Source, check the checkbox Allow output folders for source folders, and accept the d
8、efault. Press Finish. Create a new MIDlet5 Select the menu item File | New | Other. Expand node J2ME and select J2ME Midlet. Press Next. A dialog with the title J2ME Midlet appears. The Source folder setting item should already be set to /src. For the Package setting item, give the name com.example.
9、helloworld. For the Name setting item, give the name HelloWorldMidlet. Press Finish. Write MIDlet code5 http:/ a deployment package5 In the Package Explorer, right-click on project HelloWorld, and select J2ME | Create package or J2ME | Create Obfuscated Package. A directory HelloWorld/deployed should have been created, cont
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內容里面會有圖紙預覽,若沒有圖紙預覽就沒有圖紙。
- 4. 未經權益所有人同意不得將文件中的內容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內容本身不做任何修改或編輯,并不能對任何下載內容負責。
- 6. 下載文件中如有侵權或不適當內容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 北京市西城區(qū)2025年三年級數(shù)學第二學期期末監(jiān)測模擬試題含解析
- 貴州黔南經濟學院《批判性閱讀與寫作》2023-2024學年第二學期期末試卷
- 山西工商學院《課堂教學技能訓練》2023-2024學年第二學期期末試卷
- 浙江紡織服裝職業(yè)技術學院《插花藝術》2023-2024學年第一學期期末試卷
- 南京工業(yè)大學《建筑安裝工程概預算》2023-2024學年第二學期期末試卷
- 供應鏈可持續(xù)性:環(huán)境與社會風險管理
- 有機蔬菜種植盒市場調查報告
- 許昌垂直車庫施工方案
- 2025年黃金投資分析報告:全球流動與價格波動中的關鍵信號
- 超長結構廠房施工方案
- 肺結核病人的心理護理
- 2025年開封文化藝術職業(yè)學院單招職業(yè)技能測試題庫含答案
- 2025年遼寧冶金職業(yè)技術學院單招職業(yè)適應性測試題庫有完整答案
- 2025年安徽揚子職業(yè)技術學院單招職業(yè)適應性測試題庫(各地真題)
- 2025年共青科技職業(yè)學院單招職業(yè)適應性測試題庫完整版
- 煙草職業(yè)鑒定三級技能考點
- 2025年上半年潛江市城市建設發(fā)展集團招聘工作人員【52人】易考易錯模擬試題(共500題)試卷后附參考答案
- 2024年江西應用工程職業(yè)學院單招職業(yè)技能測試題庫標準卷
- 新媒體營銷(第三版) 課件全套 林海 項目1-6 新媒體營銷認知-新媒體營銷數(shù)據(jù)分析
- 2023《住院患者身體約束的護理》團體標準解讀PPT
- 星巴克運營管理手冊
評論
0/150
提交評論