<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>旌旗博客 &#187; J2ME</title>
	<atom:link href="http://rocky.kingtch.com/tag/j2me/feed/" rel="self" type="application/rss+xml" />
	<link>http://rocky.kingtch.com</link>
	<description></description>
	<lastBuildDate>Sat, 31 Dec 2011 10:47:21 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>真实手机上的JAVA系统的BUG</title>
		<link>http://rocky.kingtch.com/2007/04/17/%e7%9c%9f%e5%ae%9e%e6%89%8b%e6%9c%ba%e4%b8%8a%e7%9a%84java%e7%b3%bb%e7%bb%9f%e7%9a%84bug/</link>
		<comments>http://rocky.kingtch.com/2007/04/17/%e7%9c%9f%e5%ae%9e%e6%89%8b%e6%9c%ba%e4%b8%8a%e7%9a%84java%e7%b3%bb%e7%bb%9f%e7%9a%84bug/#comments</comments>
		<pubDate>Tue, 17 Apr 2007 15:33:03 +0000</pubDate>
		<dc:creator>rocky</dc:creator>
				<category><![CDATA[I.T.]]></category>
		<category><![CDATA[J2ME]]></category>

		<guid isPermaLink="false">http://blog.kingtch.com/2007/04/17/79/%e7%9c%9f%e5%ae%9e%e6%89%8b%e6%9c%ba%e4%b8%8a%e7%9a%84java%e7%b3%bb%e7%bb%9f%e7%9a%84bug.html</guid>
		<description><![CDATA[&#160;&#160;&#160;&#160;&#160;&#160; 按照J2ME规范写了J2ME程序，可是部署到真实手机上，稀奇古怪的问题就会出来，别大惊小怪，写JAVA虚拟机的也是普通人，照样会犯错。在此列举一些，以供后来者踩着先驱者死掉的无数脑细胞前仆后继。 &#160;&#160;&#160;&#160;&#160;&#160; 1、中文问题：Nokia 6681上在Alert的内容中的中文都显示为“口”，而标题则正常。其余的控件也有类似的问题，即title可中的中文正常，string或者text中的中文显示为“口”。在Nokia 6600上，JAD中不能使用中文，否则直接告诉安装失败。 &#160;&#160;&#160;&#160;&#160;&#160; 2、Alert显示问题：Nokia 6600上，Display.setCurrent(Alert alert, Displayable nextDisplayable)工作不正常，可直接使用Display.setCurrent(Alert alert)，然后在程序中响应alert的dismiss消息，显示下一个Displayable。6600上还有好多古怪的问题的，可以到nokia网站上去搜一下Known Issues In the Nokia 6600的这篇文档看看。 &#160;&#160;&#160;&#160;&#160; 3、WMA发送短信问题：忘了在哪个手机上用一个正数端口发送不了短信了，什么反应都没有，也没有Exception。而在MOTO E680i上，不能用端口0发送短信，没有任何Exception，把send调用注释掉之后终于看到Exception了：端口只能是1到65535之间。 &#160;&#160;&#160;&#160;&#160; 4、Nokia 8800上打包引起的问题参见：jar打包引起J2ME程序安装失败]]></description>
			<content:encoded><![CDATA[<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 按照J2ME规范写了J2ME程序，可是部署到真实手机上，稀奇古怪的问题就会出来，别大惊小怪，写JAVA虚拟机的也是普通人，照样会犯错。在此列举一些，以供后来者踩着先驱者死掉的无数脑细胞前仆后继。</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1、中文问题：Nokia 6681上在Alert的内容中的中文都显示为“口”，而标题则正常。其余的控件也有类似的问题，即title可中的中文正常，string或者text中的中文显示为“口”。在Nokia 6600上，JAD中不能使用中文，否则直接告诉安装失败。</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 2、Alert显示问题：Nokia 6600上，Display.setCurrent(Alert alert, Displayable nextDisplayable)工作不正常，可直接使用Display.setCurrent(Alert alert)，然后在程序中响应alert的dismiss消息，显示下一个Displayable。6600上还有好多古怪的问题的，可以到nokia网站上去搜一下Known Issues In the Nokia 6600的这篇文档看看。</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 3、WMA发送短信问题：忘了在哪个手机上用一个正数端口发送不了短信了，什么反应都没有，也没有Exception。而在MOTO E680i上，不能用端口0发送短信，没有任何Exception，把send调用注释掉之后终于看到Exception了：端口只能是1到65535之间。</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 4、Nokia 8800上打包引起的问题参见：<a href="http://blog.kingtch.com/2007/04/14/78/jar%e6%89%93%e5%8c%85%e5%bc%95%e8%b5%b7j2me%e7%a8%8b%e5%ba%8f%e5%ae%89%e8%a3%85%e5%a4%b1%e8%b4%a5.html">jar打包引起J2ME程序安装失败</a></p>
]]></content:encoded>
			<wfw:commentRss>http://rocky.kingtch.com/2007/04/17/%e7%9c%9f%e5%ae%9e%e6%89%8b%e6%9c%ba%e4%b8%8a%e7%9a%84java%e7%b3%bb%e7%bb%9f%e7%9a%84bug/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>jar打包引起J2ME程序安装失败</title>
		<link>http://rocky.kingtch.com/2007/04/14/jar%e6%89%93%e5%8c%85%e5%bc%95%e8%b5%b7j2me%e7%a8%8b%e5%ba%8f%e5%ae%89%e8%a3%85%e5%a4%b1%e8%b4%a5/</link>
		<comments>http://rocky.kingtch.com/2007/04/14/jar%e6%89%93%e5%8c%85%e5%bc%95%e8%b5%b7j2me%e7%a8%8b%e5%ba%8f%e5%ae%89%e8%a3%85%e5%a4%b1%e8%b4%a5/#comments</comments>
		<pubDate>Sat, 14 Apr 2007 04:28:29 +0000</pubDate>
		<dc:creator>rocky</dc:creator>
				<category><![CDATA[I.T.]]></category>
		<category><![CDATA[J2ME]]></category>

		<guid isPermaLink="false">http://blog.kingtch.com/2007/04/14/78/jar%e6%89%93%e5%8c%85%e5%bc%95%e8%b5%b7j2me%e7%a8%8b%e5%ba%8f%e5%ae%89%e8%a3%85%e5%a4%b1%e8%b4%a5.html</guid>
		<description><![CDATA[&#160; 使用这种方式进行J2ME程序打包： jar cvmf classes.jar mymanifest -C foo/ . 仍可以生成貌似很正常的jar文件，并且在大多数的手机上可以正常安装运行，然而在Nokia 8800手机上会报告“应用程序无效”。正确的打包方法应该是： jar cvfm classes.jar mymanifest -C foo/ . 关于-f和-m参数顺序说明在jar的帮助信息中是这样说明的： 用法：jar {ctxu}[vfm0Mi] [jar-文件] [manifest-文件] [-C 目录] 文件名 &#8230; 清单（manifest〕文件名和存档文件名都需要被指定，按&#8217;m&#8217; 和 &#8216;f&#8217;标志指定的相同顺序。]]></description>
			<content:encoded><![CDATA[<p>&nbsp; 使用这种方式进行J2ME程序打包：</p>
<blockquote><p>jar cv<font color="#ff0000">mf</font> classes.jar mymanifest -C foo/ .</p>
</blockquote>
<p>仍可以生成貌似很正常的jar文件，并且在大多数的手机上可以正常安装运行，然而在Nokia 8800手机上会报告“应用程序无效”。正确的打包方法应该是：</p>
<blockquote><p>jar cv<font color="#ff0000">fm</font> classes.jar mymanifest -C foo/ .</p>
</blockquote>
<p>关于-f和-m参数顺序说明在jar的帮助信息中是这样说明的：</p>
<blockquote><p>用法：jar {ctxu}[vfm0Mi] [jar-文件] [manifest-文件] [-C 目录] 文件名 &#8230;</p>
<p>清单（manifest〕文件名和存档文件名都需要被指定，按&#8217;m&#8217; 和 &#8216;f&#8217;标志指定的相同顺序。</p>
</blockquote>
]]></content:encoded>
			<wfw:commentRss>http://rocky.kingtch.com/2007/04/14/jar%e6%89%93%e5%8c%85%e5%bc%95%e8%b5%b7j2me%e7%a8%8b%e5%ba%8f%e5%ae%89%e8%a3%85%e5%a4%b1%e8%b4%a5/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

