<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: How to use rapc from RIM&#8230; dirty details!</title>
	<atom:link href="http://codeforfun.wordpress.com/2008/09/09/how-to-use-rapc-from-rim-dirty-details/feed/" rel="self" type="application/rss+xml" />
	<link>http://codeforfun.wordpress.com/2008/09/09/how-to-use-rapc-from-rim-dirty-details/</link>
	<description>Java development with an iPhone touch pad for the Atari 2600 from an urban hip-hop perspective</description>
	<lastBuildDate>Thu, 03 Dec 2009 06:18:31 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Cliff</title>
		<link>http://codeforfun.wordpress.com/2008/09/09/how-to-use-rapc-from-rim-dirty-details/#comment-16297</link>
		<dc:creator>Cliff</dc:creator>
		<pubDate>Wed, 02 Dec 2009 17:04:17 +0000</pubDate>
		<guid isPermaLink="false">http://codeforfun.wordpress.com/?p=436#comment-16297</guid>
		<description>Steve,

I just want to point out that there are limitations to your approach. There is a hard limit on the size of the cmd line which is what you depend on when you pass the files individually. Using the @files.txt as I eluded to in my post works around this limitation. It can be used in conjunction with an Ant fileset assuming you echo the fileset to an output file prior to running the command. I&#039;d suggest any custom ant task or tool take this into consideration as there&#039;s nothing more frustrating than picking up an Ant build that was working until you added a few more files. Diagnosing such a problem could be impossible for someone unfamiliar with Ant and RAPC.</description>
		<content:encoded><![CDATA[<p>Steve,</p>
<p>I just want to point out that there are limitations to your approach. There is a hard limit on the size of the cmd line which is what you depend on when you pass the files individually. Using the @files.txt as I eluded to in my post works around this limitation. It can be used in conjunction with an Ant fileset assuming you echo the fileset to an output file prior to running the command. I&#8217;d suggest any custom ant task or tool take this into consideration as there&#8217;s nothing more frustrating than picking up an Ant build that was working until you added a few more files. Diagnosing such a problem could be impossible for someone unfamiliar with Ant and RAPC.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: steve</title>
		<link>http://codeforfun.wordpress.com/2008/09/09/how-to-use-rapc-from-rim-dirty-details/#comment-16296</link>
		<dc:creator>steve</dc:creator>
		<pubDate>Wed, 02 Dec 2009 15:26:31 +0000</pubDate>
		<guid isPermaLink="false">http://codeforfun.wordpress.com/?p=436#comment-16296</guid>
		<description>Sorry, last time the ant script was not posted correctly:

&lt;target name=&quot;build&quot; &gt;
  &lt;apply executable=&quot;${rim.blackberry.home}/bin/rapc.exe&quot; parallel=&quot;true&quot;&gt;
     &lt;arg value=&quot;-quiet&quot;/&gt;
     &lt;arg value=&quot;import=${rim.blackberry.home}/lib/net_rim_api.jar&quot; /&gt;
     &lt;arg value=&quot;codename=${cod.name}&quot; /&gt;
     &lt;arg value=&quot;-midlet&quot;/&gt;
     &lt;arg value=&quot;jad=${cod.name}.jad&quot;/&gt;
     &lt;fileset file=&quot;${cod.name}.jad&quot;/&gt;
     &lt;fileset file=&quot;resources.jar&quot; /&gt;
     &lt;fileset dir=&quot;${src.dir}&quot; /&gt;
  &lt;/apply&gt;
&lt;/target&gt;</description>
		<content:encoded><![CDATA[<p>Sorry, last time the ant script was not posted correctly:</p>
<p>&lt;target name=&#8221;build&#8221; &gt;<br />
  &lt;apply executable=&#8221;${rim.blackberry.home}/bin/rapc.exe&#8221; parallel=&#8221;true&#8221;&gt;<br />
     &lt;arg value=&#8221;-quiet&#8221;/&gt;<br />
     &lt;arg value=&#8221;import=${rim.blackberry.home}/lib/net_rim_api.jar&#8221; /&gt;<br />
     &lt;arg value=&#8221;codename=${cod.name}&#8221; /&gt;<br />
     &lt;arg value=&#8221;-midlet&#8221;/&gt;<br />
     &lt;arg value=&#8221;jad=${cod.name}.jad&#8221;/&gt;<br />
     &lt;fileset file=&#8221;${cod.name}.jad&#8221;/&gt;<br />
     &lt;fileset file=&#8221;resources.jar&#8221; /&gt;<br />
     &lt;fileset dir=&#8221;${src.dir}&#8221; /&gt;<br />
  &lt;/apply&gt;<br />
&lt;/target&gt;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: steve</title>
		<link>http://codeforfun.wordpress.com/2008/09/09/how-to-use-rapc-from-rim-dirty-details/#comment-16295</link>
		<dc:creator>steve</dc:creator>
		<pubDate>Wed, 02 Dec 2009 15:20:27 +0000</pubDate>
		<guid isPermaLink="false">http://codeforfun.wordpress.com/?p=436#comment-16295</guid>
		<description>Hi, Cliff, 

This article is really good, I just want to make a comment on how to pass the multiple java files to rapc,

I make an ant script like this:


   
   
   
   
   
   
   
   
   



The above script is equivalent to the following command:

rapc.exe -quiet import=net_rim_api.jar codename=MIDletDemo -midlet jad=MIDletDemo.jad resource.jar file1.java file2.java … filen.java

Here I use Ant apply task, http://ant.apache.org/manual/CoreTasks/apply.html

Apply task allow us to pass a fileset, and it will pass each file one by one to the rapc.exe. Please note that here we choose parallel=&quot;true&quot; attribute, it means the command execute only once, which is just what we want rapc.exe do that for us.

For details please refer my blog:
http://code-dojo.blogspot.com/2009/09/using-ant-to-build-blackberry-j2me.html</description>
		<content:encoded><![CDATA[<p>Hi, Cliff, </p>
<p>This article is really good, I just want to make a comment on how to pass the multiple java files to rapc,</p>
<p>I make an ant script like this:</p>
<p>The above script is equivalent to the following command:</p>
<p>rapc.exe -quiet import=net_rim_api.jar codename=MIDletDemo -midlet jad=MIDletDemo.jad resource.jar file1.java file2.java … filen.java</p>
<p>Here I use Ant apply task, <a href="http://ant.apache.org/manual/CoreTasks/apply.html" rel="nofollow">http://ant.apache.org/manual/CoreTasks/apply.html</a></p>
<p>Apply task allow us to pass a fileset, and it will pass each file one by one to the rapc.exe. Please note that here we choose parallel=&#8221;true&#8221; attribute, it means the command execute only once, which is just what we want rapc.exe do that for us.</p>
<p>For details please refer my blog:<br />
<a href="http://code-dojo.blogspot.com/2009/09/using-ant-to-build-blackberry-j2me.html" rel="nofollow">http://code-dojo.blogspot.com/2009/09/using-ant-to-build-blackberry-j2me.html</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Cliff</title>
		<link>http://codeforfun.wordpress.com/2008/09/09/how-to-use-rapc-from-rim-dirty-details/#comment-16249</link>
		<dc:creator>Cliff</dc:creator>
		<pubDate>Mon, 12 Oct 2009 02:01:41 +0000</pubDate>
		<guid isPermaLink="false">http://codeforfun.wordpress.com/?p=436#comment-16249</guid>
		<description>Hey Kog,

I&#039;ve seen this soo many times in the  past. It&#039;s sad but true that things start to go silly when you load big cod files. I never really found any definitive root cause when I started experiencing this problem. I believe it finally boiled down to our using the wrong version of rapc and other tools. At one point we were using the Sun WTK preverifier version 4.2.2 of RAPC and deploying to version 4.2.1 OS. once we got all of the tools lined up, (version 4.2.1 of RAPC with RAPC preverify for OS 4.2.1 and higher) the problems all melted away. If you&#039;re running RAPC 4.7 and installing on 4.5 then you&#039;ll probably see radically different behavior by making sure your target OS is of an equal or higher version than that of the RAP build tools. In Eclipse you can install different versions of RAPC using the update site. If you&#039;re using the JDE then download the correct version of the JDE (JDE 4.5 or lower for OS 4.5). If you&#039;re installing Jad/Jar files switch to the JDE or the Blackberry Eclipse plugin and you&#039;ll get a far better experience. If none of these is your problem try removing the images/graphics files from the package and downloading them from an HTTP server on 1st run. Also try removing class files that you may not be using. RAPC should do this but I&#039;ve had limited success using the Ant  tag to prune out unused class files from my jar before pointing RAPC at the jar.</description>
		<content:encoded><![CDATA[<p>Hey Kog,</p>
<p>I&#8217;ve seen this soo many times in the  past. It&#8217;s sad but true that things start to go silly when you load big cod files. I never really found any definitive root cause when I started experiencing this problem. I believe it finally boiled down to our using the wrong version of rapc and other tools. At one point we were using the Sun WTK preverifier version 4.2.2 of RAPC and deploying to version 4.2.1 OS. once we got all of the tools lined up, (version 4.2.1 of RAPC with RAPC preverify for OS 4.2.1 and higher) the problems all melted away. If you&#8217;re running RAPC 4.7 and installing on 4.5 then you&#8217;ll probably see radically different behavior by making sure your target OS is of an equal or higher version than that of the RAP build tools. In Eclipse you can install different versions of RAPC using the update site. If you&#8217;re using the JDE then download the correct version of the JDE (JDE 4.5 or lower for OS 4.5). If you&#8217;re installing Jad/Jar files switch to the JDE or the Blackberry Eclipse plugin and you&#8217;ll get a far better experience. If none of these is your problem try removing the images/graphics files from the package and downloading them from an HTTP server on 1st run. Also try removing class files that you may not be using. RAPC should do this but I&#8217;ve had limited success using the Ant  tag to prune out unused class files from my jar before pointing RAPC at the jar.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kog</title>
		<link>http://codeforfun.wordpress.com/2008/09/09/how-to-use-rapc-from-rim-dirty-details/#comment-16248</link>
		<dc:creator>Kog</dc:creator>
		<pubDate>Fri, 09 Oct 2009 10:31:56 +0000</pubDate>
		<guid isPermaLink="false">http://codeforfun.wordpress.com/?p=436#comment-16248</guid>
		<description>Hi
I just discovered this site and it&#039;s great ;)
I wonder if you could maybe help me with my problem, maybe you&#039;ve encountered it already.
I posted my question on BB developers site but I didn&#039;t get any satisfactioning answers... I will just copy post from there, to be sure I describe it right:
&quot;The problem is I can&#039;t load java program to simulator. 

I&#039;m porting game with many graphics to BB and recently after adding new ones generated .cod file size is over 7,5mb and it won&#039;t install - after loading java program it doesn&#039;t show in downloaded folder, as it used to. 

After running simulator with attached debugger I found above message showing while loading file:  

Jvm: errors in game.cod
CMM: add game-1(5301)
CMM: add game-2(5434)
CMM: add game-3(5437) 

and so on (about 150 of them). 

I checked on debugger loading smaller file (5,5mb) and &quot;Jvm: errors..&quot; doesn&#039;t show. Only diffrence beetwen those two versions is size of one included resource file (so far not used in code) 

What could those errors be? Is there maybe some limit on individual resource file size? Or maybe limit on .cod file (but from what I read there&#039;s no such limit) ?&quot;

It would be great if you got something on this one, I&#039;m sitting on it for too damn long already..</description>
		<content:encoded><![CDATA[<p>Hi<br />
I just discovered this site and it&#8217;s great <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /><br />
I wonder if you could maybe help me with my problem, maybe you&#8217;ve encountered it already.<br />
I posted my question on BB developers site but I didn&#8217;t get any satisfactioning answers&#8230; I will just copy post from there, to be sure I describe it right:<br />
&#8220;The problem is I can&#8217;t load java program to simulator. </p>
<p>I&#8217;m porting game with many graphics to BB and recently after adding new ones generated .cod file size is over 7,5mb and it won&#8217;t install &#8211; after loading java program it doesn&#8217;t show in downloaded folder, as it used to. </p>
<p>After running simulator with attached debugger I found above message showing while loading file:  </p>
<p>Jvm: errors in game.cod<br />
CMM: add game-1(5301)<br />
CMM: add game-2(5434)<br />
CMM: add game-3(5437) </p>
<p>and so on (about 150 of them). </p>
<p>I checked on debugger loading smaller file (5,5mb) and &#8220;Jvm: errors..&#8221; doesn&#8217;t show. Only diffrence beetwen those two versions is size of one included resource file (so far not used in code) </p>
<p>What could those errors be? Is there maybe some limit on individual resource file size? Or maybe limit on .cod file (but from what I read there&#8217;s no such limit) ?&#8221;</p>
<p>It would be great if you got something on this one, I&#8217;m sitting on it for too damn long already..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: chethan</title>
		<link>http://codeforfun.wordpress.com/2008/09/09/how-to-use-rapc-from-rim-dirty-details/#comment-16237</link>
		<dc:creator>chethan</dc:creator>
		<pubDate>Tue, 22 Sep 2009 13:52:07 +0000</pubDate>
		<guid isPermaLink="false">http://codeforfun.wordpress.com/?p=436#comment-16237</guid>
		<description>Hi Cliff,
I am new to maven. I would want to port my application to black berry. Could u please help me out as to how i go about building the pom.xml file to build the cod file for black berry using maven.</description>
		<content:encoded><![CDATA[<p>Hi Cliff,<br />
I am new to maven. I would want to port my application to black berry. Could u please help me out as to how i go about building the pom.xml file to build the cod file for black berry using maven.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pedro</title>
		<link>http://codeforfun.wordpress.com/2008/09/09/how-to-use-rapc-from-rim-dirty-details/#comment-16190</link>
		<dc:creator>Pedro</dc:creator>
		<pubDate>Tue, 11 Aug 2009 09:59:07 +0000</pubDate>
		<guid isPermaLink="false">http://codeforfun.wordpress.com/?p=436#comment-16190</guid>
		<description>Great stuff, really useful dude.  All your articles are very informative, please dont stop churning them out and giving back.  Good info is so sparse!</description>
		<content:encoded><![CDATA[<p>Great stuff, really useful dude.  All your articles are very informative, please dont stop churning them out and giving back.  Good info is so sparse!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Cliff</title>
		<link>http://codeforfun.wordpress.com/2008/09/09/how-to-use-rapc-from-rim-dirty-details/#comment-16125</link>
		<dc:creator>Cliff</dc:creator>
		<pubDate>Mon, 15 Jun 2009 14:11:17 +0000</pubDate>
		<guid isPermaLink="false">http://codeforfun.wordpress.com/?p=436#comment-16125</guid>
		<description>Harry,

Be careful with RAPC. you may get your application to compile. You may even manage to get it to run on the device. However, your next hurdle will definitely be either verification errors or the white screen of death. The only way to avoid these problems is to use ONLY the RIM preverifier and also use the correct version of the preverifier/rapc compiler for your target audience. If you target older 8800&#039;s and 8830s that run OS 4.1 then you&#039;ll have another set of hurdles as the older rapc compiler works differently than the newer compiler. You should definitely use the older compiler unless you&#039;re developing for internal company use only as it increases your audience. Most people on Blackberry don&#039;t know how/ain&#039;t got time/lack the patience to upgrade their OS and will likely have the older version installed.</description>
		<content:encoded><![CDATA[<p>Harry,</p>
<p>Be careful with RAPC. you may get your application to compile. You may even manage to get it to run on the device. However, your next hurdle will definitely be either verification errors or the white screen of death. The only way to avoid these problems is to use ONLY the RIM preverifier and also use the correct version of the preverifier/rapc compiler for your target audience. If you target older 8800&#8217;s and 8830s that run OS 4.1 then you&#8217;ll have another set of hurdles as the older rapc compiler works differently than the newer compiler. You should definitely use the older compiler unless you&#8217;re developing for internal company use only as it increases your audience. Most people on Blackberry don&#8217;t know how/ain&#8217;t got time/lack the patience to upgrade their OS and will likely have the older version installed.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Harry</title>
		<link>http://codeforfun.wordpress.com/2008/09/09/how-to-use-rapc-from-rim-dirty-details/#comment-16123</link>
		<dc:creator>Harry</dc:creator>
		<pubDate>Sat, 13 Jun 2009 07:09:40 +0000</pubDate>
		<guid isPermaLink="false">http://codeforfun.wordpress.com/?p=436#comment-16123</guid>
		<description>Ah - I re-read your post and saw the Icon needed to be in the root of the app directory.

Thank you.</description>
		<content:encoded><![CDATA[<p>Ah &#8211; I re-read your post and saw the Icon needed to be in the root of the app directory.</p>
<p>Thank you.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Harry</title>
		<link>http://codeforfun.wordpress.com/2008/09/09/how-to-use-rapc-from-rim-dirty-details/#comment-16122</link>
		<dc:creator>Harry</dc:creator>
		<pubDate>Sat, 13 Jun 2009 07:07:29 +0000</pubDate>
		<guid isPermaLink="false">http://codeforfun.wordpress.com/?p=436#comment-16122</guid>
		<description>Thanks for this post.

I was able to successfully compile and use a simple app I made using the command line compiler, however I am also having an issue regarding the images.

Is there a tutorial on how to add the images to the project?</description>
		<content:encoded><![CDATA[<p>Thanks for this post.</p>
<p>I was able to successfully compile and use a simple app I made using the command line compiler, however I am also having an issue regarding the images.</p>
<p>Is there a tutorial on how to add the images to the project?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
