Nokia手机S40平台手机开发环境的搭建的过程:2011-3-30孙务本参考文档:AInstallationandConfigurationGuide,S40_SDK_3rd_Edition_FP2_Installation.pdfBCDE系统环境:硬件ThehardwarerequirementstoinstallandruntheSDKasastandalonetoolare:(refertoreference[A])MinimumRecommended667MHzPentiumprocessor100MBoffreeharddiskspace256MBRAM2.8GHzPentiumprocessor140MBoffreeharddiskspace512MBRAM16-bitcolor24-bitcolorormore1024x768pixeldisplayKeyboardandmouse1024x768pixeldisplayormoreKeyboardandmouseIfyouplantoworkwithsound(fromMIDlets,forinstance),you’llalsowanttohaveasoundcardthathasonechannelforeverySDKinstanceyourun.Ifyoudonothaveenoughchannels,SDKinstancesthatyoustartafteryourunoutofchannelswillnothavesound.软件(refertoreference[A])UseoneoftheseoperatingsystemsasaminimumsoftwarerequirementtoruntheSeries40SDK,3rdEditionFeaturePack2asastandalone:•WindowsXPProfessionalServicePack2•WindowsXPHomeEditionServicePack2•WindowsXPProfessionalChineseServicePack2YouwillalsoneedtoinstallapublicJavaSERuntimeEnvironment(JRE)5orhigherbeforeyouinstalltheSDK.开发环境所需的软件:(refertoreference[A])InadditiontousingtheSDKasastandalonetool,youcanusetheSDKwithinanIDE.Series40SDK,3rdEditionFeaturePack2hasbeentestedwiththefollowingIDEsbutmayworkwithotherIDEsaswell:•NokiaMobileInternetToolkit(NMIT)4.1withthepatchforJRE5•NokiaDeveloper’sSuite(NDS)forMMS1.1•AdobeGoLiveCS2,directlyandthroughNDSforMMS1.1•AdobeDreamweaver8•Eclipse3.1.2,withCarbide.jintegration•Carbide.j1.5,standaloneinstallation•SunNetBeans5.0withNetBeansMobilityPack5.0灰色部分不是必须。属于后期的高级应用。实际安装过程:实际的软件准备:1.JDK1.5.0,(jdk-1_5_0_17-windows-i586-p.exe,也叫J2SE5.0developmentKitUPDATE17),下载网址:http://java.sun.com/products/archive/j2se/5.0_17/index.html2.EclipseSDK3.1.0,下载网址:http://archive.eclipse.org/eclipse/downloads/drops/R-3.1-200506271435/index.php3.EclipseMe1.6.0,下载网址:http://sourceforge.net/projects/eclipseme/files/eclipseme/1.6.0/4.Carbide.j1.5.0,下载网址:http://www.forum.nokia.com/info/sw.nokia.com/id/bc2785aa-bda0-436a-80d6-e6cf4157416a.html5.S40_SDK_3rd_Edition_FP2_1_0.zip,下载网址:http://www.forum.nokia.com/info/sw.nokia.com/id/cc48f9a1-f5cf-447b-bdba-c4d41b3d05ce/Series_40_Platform_SDKs.html或http://dev.10086.cn/cmdn/wiki/index.php?doc-view-2662安装过程:保证在满足前面的要求的系统环境下,依照下列步骤来安装,注意,一定要按顺序来安装:1.安装JDK1.5.0。如果已安装过更高的版本,则应该将高版本卸载,再安装。高版本可能因不稳定导致和后续的软件不兼容。2.安装Eclipse3.1.0,很简单,解压到任意目录就行。此处是解压到D:\Nokia\eclipse.Eclipse目前有更新的版本,但不是越新越好。会导致和其他软件的兼容。3.安装EclipseMe.在eclipse中菜单栏中的Help-->SoftwareUpdates-->Findandinstall-->选中searchfornewfeaturestoinstall-->Next-->addArchivedsite-->选中eclipseme.feature_1.6.0_site.zip-->选中复选框(打勾)eclipseme.feature_1.6.0_site.zip-->next-->next-->选中"Iaccept..."-->next-->选择安装目录(建议默认)--->finish-->install-->yesEclipse重启后,看到菜单window--->preferences有J2ME,就是安装成功。这时,EclipseJ2ME开发的第一步,我们已经成功的迈出了~~~注意:安装好EclipseME之后,我们要对原有的Eclipse配置做一点小小的改动。由于移动开发时我们需要首先启动手机模拟器,那么在Debug模式的Eclipse默认设置不等到模拟器启动就会失败。(英文版修改)在Window->Preference->Java->Debug中,取消暂停选项,就是把suspendex...和suspendex...oncom..的勾...