JavaME開發(fā)手機程序_第1頁
JavaME開發(fā)手機程序_第2頁
JavaME開發(fā)手機程序_第3頁
JavaME開發(fā)手機程序_第4頁
JavaME開發(fā)手機程序_第5頁
已閱讀5頁,還剩11頁未讀 繼續(xù)免費閱讀

下載本文檔

版權說明:本文檔由用戶提供并上傳,收益歸屬內容提供方,若內容存在侵權,請進行舉報或認領

文檔簡介

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. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

最新文檔

評論

0/150

提交評論