{"id":71,"date":"2009-10-18T20:39:30","date_gmt":"2009-10-19T00:39:30","guid":{"rendered":"httpss:\/\/www.powenko.com\/blog\/?p=71"},"modified":"2009-10-18T20:45:13","modified_gmt":"2009-10-19T00:45:13","slug":"%e3%80%8e%e5%a6%82%e4%bd%95%e7%94%a8eclipse%e9%96%8b%e7%99%bcj2me%e8%a1%8c%e5%8b%95%e8%a3%9d%e7%bd%ae%e7%a8%8b%e5%bc%8f%e3%80%8f","status":"publish","type":"post","link":"https:\/\/www.powenko.com\/wordpress\/?p=71","title":{"rendered":"JAVA, \u300e\u5982\u4f55\u7528eclipse\u958b\u767cJ2ME\u884c\u52d5\u88dd\u7f6e\u7a0b\u5f0f\u300f"},"content":{"rendered":"<div id=\"post_title\" class=\"post_title\">\n<div class=\"post_titlediv\">\u7b2c\u4e00\u6b65:\u4e0b\u8f09\u5b89\u88dd J2SE(TM)<br \/>\n\u65b0\u7248\u672c<\/div>\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr valign=\"top\">\n<td><strong>Java Platform Micro Edition Software Development Kit 3.0<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><a href=\"httpss:\/\/java.sun.com\/javame\/downloads\/index.jsp\">httpss:\/\/java.sun.com\/javame\/downloads\/index.jsp<\/a>\u00a0<\/p>\n<div class=\"post_titlediv\"><a rel=\"nofollow\" href=\"httpss:\/\/java.sun.com\/javase\/downloads\/index.jsp\"><\/a><br \/>\n\u5fd8\u8a18J2SE\u5728DOS\u8996\u7a97\u4e0b\u7de8\u8b6f\u57f7\u884c\u7684\u74b0\u5883\u8b8a\u6578PATH\u8ddfCLASSPATH\u600e\u9ebc\u8a2d\u5b9a\u4e86\u55ce?\u8acb\u53c3\u8003\u4e0b\u9762<br \/>\n<a rel=\"nofollow\" href=\"httpss:\/\/www.javaworld.com.tw\/jute\/post\/view?bid=29&amp;id=9554&amp;sty=1&amp;tpg=1&amp;age=0\"><span style=\"color: #7494ff;\">PATH \u8207 CLASSPATH [\u7cbe\u83ef]<\/span><\/a><\/div>\n<p>\u7b2c\u4e8c\u6b65:\u4e0b\u8f09\u5b89\u88dd J2ME(TM) Wireless Toolkit<br \/>\n\u65b0\u7248\u672c(\u9700\u52a0\u5165\u5b98\u65b9\u6703\u54e1\u624d\u53ef\u4e0b\u8f09 \u514d\u8cbb\u7684)<br \/>\n<a rel=\"nofollow\" href=\"httpsss:\/\/sdlc6a.sun.com\/ECom\/EComActionServlet;jsessionid=3BE357C9C7163CA54020BD75D429C127\"><span style=\"color: #7494ff;\">J2ME(TM) Wireless Toolkit CH 2.2 FCS<\/span><\/a><br \/>\n\u65b0\u7248\u672c\u7684\u66f4\u65b0\u6a94(\u53ef\u88dd\u53ef\u4e0d\u88dd)<br \/>\n<a rel=\"nofollow\" href=\"httpsss:\/\/sdlc2b.sun.com\/ECom\/EComActionServlet;jsessionid=247F878D1585535FC0A44807C6EC01DA\"><span style=\"color: #7494ff;\">J2ME(TM) Wireless Toolkit Multi-Language 2.2 Patch 200511<\/span><\/a><br \/>\n\u66f4\u65b0\u6a94\u5b89\u88dd\u6559\u5b78<br \/>\n<a rel=\"nofollow\" href=\"httpss:\/\/gceclub.sun.com.cn\/products\/sjwtoolkit\/zh_tw_Readme.txt\"><span style=\"color: #7494ff;\">\u66f4\u65b0\u6a94\u5b89\u88dd\u6559\u5b78(\u4e2d\u6587)<\/span><\/a><\/p>\n<\/div>\n<div id=\"post_content\" class=\"post_content\">\u7b2c\u4e09\u6b65:\u4e0b\u8f09Eclipse(\u514d\u5b89\u88dd \u89e3\u58d3\u7e2e\u81f3\u4f60\u60f3\u8981\u7684\u5730\u65b9\u5f8c\u5c31\u53ef\u4f7f\u7528)<br \/>\n\u65b0\u7248\u672c<br \/>\n<a rel=\"nofollow\" href=\"httpss:\/\/download.eclipse.org\/eclipse\/downloads\/drops\/R-3.2.1-200609210945\/index.php\"><span style=\"color: #7494ff;\">eclipse-SDK-3.2.1-win32.zip<\/span><\/a><br \/>\n\u4e2d\u6587\u5316\u5957\u4ef6(\u89e3\u58d3\u7e2e\u5f8c\u8986\u84cb\u539f\u6a94\u6848\u5373\u53ef)<br \/>\n<a rel=\"nofollow\" href=\"httpss:\/\/download.eclipse.org\/eclipse\/downloads\/drops\/L-3.2.1_Language_Packs-200609210945\/index.php\"><span style=\"color: #7494ff;\">NLpack1-eclipse-SDK-3.2.1-win32.zip<\/span><\/a><\/div>\n<p>\u7b2c\u56db\u6b65:\u4e0b\u8f09EclipseME(\u4e0b\u8f09\u5b8c\u6210\u5f8c\u4e0d\u8981\u89e3\u58d3\u7e2e \u6a94\u6848\u5132\u5b58\u7684\u8def\u5f91\u6700\u597d\u4e0d\u8981\u6709\u4e2d\u6587)<br \/>\n\u65b0\u7248\u672c<br \/>\n<a rel=\"nofollow\" href=\"httpss:\/\/sourceforge.net\/project\/showfiles.php?group_id=86829\"><span style=\"color: #7494ff;\">eclipseme.feature_1.5.5_site.zip<\/span><\/a><\/p>\n<p>\u7b2c\u4e94\u6b65:\u5b89\u88ddEclipseME\u5957\u4ef6<br \/>\n<a rel=\"nofollow\" href=\"httpss:\/\/eclipseme.org\/docs\/installEclipseME.html\"><span style=\"color: #7494ff;\">\u5b98\u65b9\u6559\u5b78(1)(\u5f9e\u7b2c\u4e09\u9ede\u958b\u59cb)<\/span><\/a><\/p>\n<p>\u7531\u65bc\u7248\u672c\u66f4\u65b0\u5f88\u591a<br \/>\n\u6b65\u9a5f\u53ef\u80fd\u6703\u6709\u9ede\u6539\u8b8a<br \/>\n\u5728\u9019\u8aaa\u660e\u4e00\u4e0b\u6211\u7684\u5b89\u88dd\u6b65\u9a5f:<br \/>\n1.\u958b\u555fEclipse<br \/>\n2.\u9ede\u9078 \u8aaa\u660e &gt; \u8edf\u9ad4\u66f4\u65b0 &gt; \u5c0b\u627e\u548c\u5b89\u88dd<br \/>\n3.\u9078\u7b2c2\u500b \u641c\u5c0b\u8981\u5b89\u88dd\u7684\u65b0\u7279\u6027 &gt; \u4e0b\u4e00\u6b65<br \/>\n4.\u9ede\u9078 \u65b0\u7684\u4fdd\u5b58\u7db2\u7ad9<br \/>\n5.\u627e\u5230\u4f60\u4e0b\u8f09\u7684EclipseME\u5957\u4ef6.zip &gt; \u958b\u555f<br \/>\n6.\u9ede\u9078 \u5b8c\u6210 \u7136\u5f8c\u5c31\u6703\u9032\u5165\u5b89\u88dd\u6b65\u9a5f(\u4e0b\u4e00\u6b65\u5566.\u6211\u540c\u610f\u5566\u7b49\u7b49\u7684.\u6709\u51fa\u73fe\u8981\u52fe\u9078\u7684\u8a18\u5f97\u628a\u5957\u4ef6\u52fe\u8d77\u4f86)<br \/>\n7.\u5b89\u88dd\u5b8c\u6210\u5f8c\u91cd\u65b0\u555f\u52d5<br \/>\n8.\u9ede\u9078 \u8996\u7a97 &gt; \u559c\u597d\u8a2d\u5b9a \u5728\u5de6\u908a\u6703\u51fa\u73feJ2ME\u7684\u9805\u76ee \u606d\u559c\u5b89\u88dd\u6210\u529f\u4e86!<\/p>\n<p>\u7b2c\u516d\u6b65:\u5c07J2ME(TM) Wireless Toolkit\u532f\u5165EclipseME<br \/>\n<a rel=\"nofollow\" href=\"httpss:\/\/eclipseme.org\/docs\/configuring.html\"><span style=\"color: #7494ff;\">\u5b98\u65b9\u6559\u5b78(2)(\u7b2c1\u9ede)<\/span><\/a><\/p>\n<p>1.\u9ede\u9078 \u8996\u7a97 &gt; \u559c\u597d\u8a2d\u5b9a<br \/>\n2.\u6253\u958b\u5de6\u908a\u7684J2ME\u9078\u55ae \u9ede\u9078\u7b2c\u4e00\u9805 \u7136\u5f8c\u9ede\u53f3\u908a\u7684 Import<br \/>\n3.\u9ede\u9078\u4e0a\u9762\u53f3\u908a\u7684 Browse \u53bb\u9078\u53d6WTK\u5b89\u88dd\u7684\u8cc7\u6599\u593e(\u4f8b\u5982:E:\\JAVA\\WTK22)\u7136\u5f8c\u6309 Refresh<br \/>\n4.\u641c\u5c0b\u5b8c\u5f8c \u9ede\u9078 \u5b8c\u6210<br \/>\n5.\u56de\u5230\u559c\u597d\u8a2d\u5b9a\u8996\u7a97\u9ede\u9078 \u5957\u7528 \u78ba\u5b9a \u606d\u559c\u532f\u5165\u5b8c\u6210\u4e86!<\/p>\n<p>\u7b2c\u4e03\u6b65:\u66f4\u6539Eclipse\u7684\u9664\u932f\u8a2d\u5b9a<br \/>\n<a rel=\"nofollow\" href=\"httpss:\/\/eclipseme.org\/docs\/configuring.html\"><span style=\"color: #7494ff;\">\u5b98\u65b9\u6559\u5b78(2)(\u7b2c2\u9ede)<\/span><\/a><br \/>\n1.\u9ede\u9078 \u8996\u7a97 &gt; \u559c\u597d\u8a2d\u5b9a<br \/>\n2.\u6253\u958b\u5de6\u908a\u7684JAVA\u9078\u55ae \u9ede\u9078 \u9664\u932f<br \/>\n3.\u5c07 \u66ab\u505c\u57f7\u884c \u88e1\u7684\u7b2c1\u500b\u8ddf\u7b2c2\u500b\u52fe\u9078\u53d6\u6d88<br \/>\n4.\u5c07 \u901a\u8a0a \u88e1\u7684\u9664\u932f\u5668\u903e\u6642\u6539\u70ba 15000<br \/>\n5.\u9ede\u9078 \u5957\u7528 \u78ba\u5b9a \u606d\u559c\u8a2d\u5b9a\u5b8c\u6210!<\/p>\n<p>\u81f3\u6b64Eclipse\u5df2\u7d93\u53ef\u4ee5\u9664\u932f\u7de8\u8b6f\u57f7\u884cJ2ME\u7684\u7a0b\u5f0f\u4e26\u7528WTK\u986f\u793a\u51fa\u7d50\u679c<br \/>\n\u800c\u5b98\u65b9\u6559\u5b78\u6709\u63d0\u4f9b\u9032\u968e\u7684\u8a2d\u5b9a\u6709\u8208\u8da3\u7684\u53ef\u4ee5\u53c3\u8003\u93c8\u7d50\u5b98\u65b9\u6559\u5b78(2)\u53ca<a rel=\"nofollow\" href=\"httpss:\/\/eclipseme.org\/docs\/bestPractices.html\">\u5b98\u65b9\u6559\u5b78(3)<\/a><\/p>\n<p>\u63a5\u4e0b\u4f86\u6211\u5011\u5be6\u505a\u7b2c\u4e00\u500bJ2ME\u7a0b\u5f0f:<br \/>\n1.\u9ede\u9078 \u6a94\u6848 &gt; \u65b0\u5efa &gt; \u5c08\u6848<br \/>\n2.\u9078\u64c7 J2ME \u88e1\u7684 J2ME Midlet Suite \u7136\u5f8c\u9ede\u4e0b\u4e00\u6b65<br \/>\n3.\u8f38\u5165\u5c08\u6848\u540d\u7a31 \u7136\u5f8c\u9ede \u5b8c\u6210<br \/>\n4.\u5728\u5de5\u4f5c\u5340\u5de6\u908a\u7684\u5957\u4ef6\u700f\u89bd\u5668\u4e2d\u6703\u51fa\u73fe\u4f60\u7684\u5c08\u6848 \u5728\u5c08\u6848\u540d\u7a31\u4e0a\u9ede\u6ed1\u9f20\u53f3\u9375 &gt; \u65b0\u5efa &gt; \u5176\u4ed6<br \/>\n5.\u9078\u64c7 J2ME \u88e1\u7684 J2ME Midlet \u7136\u5f8c\u9ede\u4e0b\u4e00\u6b65<br \/>\n6.\u8f38\u5165\u6a94\u6848\u540d\u7a31 \u7136\u5f8c\u9ede \u5b8c\u6210<br \/>\n7.\u63a5\u4e0b\u4f86\u6211\u5011\u53c3\u8003\u7db2\u8def\u4e0a\u53d6\u5f97\u7684\u7a0b\u5f0f\u78bc(\u9ed1\u8272\u90e8\u4efd\u662fEclipse\u81ea\u52d5\u751f\u6210\u7684 \u7d05\u8272\u90e8\u5206\u8acb\u81ea\u884c\u586b\u5165) \u8f38\u5165\u5b8c\u7562\u5f8c \u5132\u5b58<\/p>\n<p>import javax.microedition.midlet.MIDlet;<br \/>\nimport javax.microedition.midlet.MIDletStateChangeException;<\/p>\n<p><span style=\"color: #ff0000;\">import javax.microedition.lcdui.*;<\/span><\/p>\n<p>public class j2metest extends MIDlet {<\/p>\n<p><span style=\"color: #ff0000;\">Display display;<br \/>\nForm f;<\/span><\/p>\n<p>public j2metest() {<br \/>\n\/\/ TODO \u81ea\u52d5\u7522\u751f\u5efa\u69cb\u5b50 Stub<br \/>\n<span style=\"color: #ff0000;\">display = Display.getDisplay(this);<br \/>\nf = new Form(&#8220;HelloMIDlet&#8221;);<br \/>\nf.append(&#8220;Hi~~Everybody!!&#8221;);<br \/>\ndisplay.setCurrent(f);<\/span><\/p>\n<p>}<\/p>\n<p>protected void destroyApp(boolean arg0) throws MIDletStateChangeException {<br \/>\n\/\/ TODO \u81ea\u52d5\u7522\u751f\u65b9\u6cd5 Stub<\/p>\n<p>}<\/p>\n<p>protected void pauseApp() {<br \/>\n\/\/ TODO \u81ea\u52d5\u7522\u751f\u65b9\u6cd5 Stub<\/p>\n<p>}<\/p>\n<p>protected void startApp() throws MIDletStateChangeException {<br \/>\n\/\/ TODO \u81ea\u52d5\u7522\u751f\u65b9\u6cd5 Stub<\/p>\n<p>}<\/p>\n<p>}<\/p>\n<p>8.\u5728\u5de5\u4f5c\u5340\u5de6\u908a\u7684\u5957\u4ef6\u700f\u89bd\u5668\u4e2d\u9ede\u9078\u539f\u59cb\u78bc\u6a94\u6848\u53f3\u9375 &gt; \u57f7\u884c\u70ba &gt; Emulated J2ME Midlet<br \/>\n9.\u7b49\u5f85\u4e00\u6703\u5f8c \u6703\u5728\u624b\u6a5f\u88e1\u986f\u793a\u51fa Hi~~Everybody!!<\/p>\n<p>\u606d\u559c\u5b8c\u6210\u56c9~!!<\/p>\n<div class=\"post_content\">source from: <a href=\"httpss:\/\/blog.yam.com\/shiu1129\/article\/4717829\">httpss:\/\/blog.yam.com\/shiu1129\/article\/4717829<\/a><\/div>\n<div class=\"post_content\">&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<\/div>\n<div class=\"post_content\">\n<h3 class=\"title\">Eclipse\u958b\u767cJ2ME!<\/h3>\n<div class=\"innertext\">\n<p><span style=\"font-size: large;\">\u8acb\u5148\u4e0b\u8f09eclipse&gt;&gt;&gt;<\/span><span style=\"font-size: large;\"><a href=\"httpss:\/\/www.eclipse.org\/downloads\/download.php?file=\/technology\/epp\/downloads\/release\/ganymede\/SR1\/eclipse-java-ganymede-SR1-win32.zip&amp;url=httpss:\/\/eclipse.stu.edu.tw\/technology\/epp\/downloads\/release\/ganymede\/SR1\/eclipse-java-ganymede-SR1-win32.zip&amp;mirror_id=75\" target=\"_blank\"><span style=\"color: #dbff15;\">download<\/span><\/a><br \/>\n\u63a5\u8457\u4e0b\u8f09Wireless Toolkit 2.5.2&gt;&gt;&gt;<a href=\"httpss:\/\/cds.sun.com\/is-bin\/INTERSHOP.enfinity\/WFS\/CDS-CDS_Developer-Site\/en_US\/-\/USD\/ViewProductDetail-Start?ProductRef=sun_java_wireless_toolkit-2.5.2-oth-JPR@CDS-CDS_Developer\" target=\"_blank\"><span style=\"color: #dbff15;\">download<\/span><\/a><br \/>\n\u5148\u5b89\u88dd<\/span><span style=\"font-size: large;\">Wireless Toolkit 2.5.2<\/span><span style=\"font-size: large;\"><br \/>\n<img decoding=\"async\" src=\"httpss:\/\/f5.wretch.yimg.com\/compileerror\/10\/1079974573.jpg\" alt=\"\" \/><br \/>\n<span style=\"font-size: large;\">\u7136\u5f8c<\/span><\/span><span style=\"font-size: large;\">\u5728eclipse<\/span><span style=\"font-size: large;\"><span style=\"font-size: large;\">\u5de5\u5177\u5217\u627eHelp\u88e1\u627eSoftware Updates&#8230;<\/span><\/span> <span style=\"font-size: large;\"><br \/>\n<img decoding=\"async\" style=\"max-width: 460px;\" src=\"httpss:\/\/f5.wretch.yimg.com\/compileerror\/10\/1079974574.jpg\" alt=\"\" width=\"460\" \/><br \/>\n\u9078\u64c7Available Software&gt;&gt;Add Site&#8230;<br \/>\n<img decoding=\"async\" style=\"max-width: 460px;\" src=\"httpss:\/\/f5.wretch.yimg.com\/compileerror\/10\/1079974569.jpg\" alt=\"\" width=\"460\" \/><br \/>\n\u63a5\u8457\u8f38\u5165httpss:\/\/eclipseme.org\/updates\/\u6309\u4e0bOK(URL\u4e00\u5b9a\u8981\u8f38\u5165\u5426\u5247\u7121\u6cd5\u5b89\u88dd)<br \/>\n<img decoding=\"async\" style=\"max-width: 460px;\" src=\"httpss:\/\/f5.wretch.yimg.com\/compileerror\/10\/1079974572.jpg\" alt=\"\" width=\"460\" \/><br \/>\n\u6309\u4e0bNext&#8230;&#8230;.<br \/>\n<img decoding=\"async\" style=\"max-width: 460px;\" src=\"httpss:\/\/f5.wretch.yimg.com\/compileerror\/10\/1079974571.jpg\" alt=\"\" width=\"460\" \/><br \/>\n\u52fe\u9078\u8d77\u4f86Eclipse ME&gt;&gt;Install<br \/>\n<img decoding=\"async\" style=\"max-width: 460px;\" src=\"httpss:\/\/f5.wretch.yimg.com\/compileerror\/10\/1079974570.jpg\" alt=\"\" width=\"460\" \/><br \/>\n\u9ede\u9078\u540c\u610f\u518d\u6309<\/span><\/p>\n<p>\u00a0<\/p>\n<p><span style=\"font-size: large;\">source from: <a href=\"httpss:\/\/www.wretch.cc\/blog\/CompileError\/17021534\">httpss:\/\/www.wretch.cc\/blog\/CompileError\/17021534<\/a><\/span><\/p>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u7b2c\u4e00\u6b65:\u4e0b\u8f09\u5b89\u88dd J2SE(TM) \u65b0\u7248\u672c Java Platform Micro Edition Softw [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-71","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/www.powenko.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/71"}],"collection":[{"href":"https:\/\/www.powenko.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.powenko.com\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.powenko.com\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.powenko.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=71"}],"version-history":[{"count":0,"href":"https:\/\/www.powenko.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/71\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.powenko.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=71"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.powenko.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=71"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.powenko.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=71"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}