Rss Feed
Tweeter button
Facebook button
Technorati button
Reddit button
Myspace button
Linkedin button
Webonews button
Delicious button
Digg button
Flickr button
Eurax

Adding Blackberry Emulator to Netbeans

Autor admin

1 – download and install Suns Java SDK

2 – download and install Netbeans IDE

3 – download and install Netbeans Mobility Pack

4 – download and install RIMs Blackberry JDE

5 – Launch Netbeans, from the toolbar select tools > java platform manager > add platform and select ‘custom java micro edition platform emulator’

6 – Select Custom Java Micro Edition Platform Emulator. Click Next.
7 – The Platform Home should be JDE installation directory
8 – You can enter whatever you want for the Platform Name
9 – Set Device Name to one of the supported devices: 7100g, 7100r, 7100t, 7100v, 7100x, 7250, 7290, 7520, 8100, etc.
10 – Dont Change Preverify Command line

11- Execution Command: cmd /C “cd /D {platformhome}{/}simulator&{device}”
12 – Debugger Command: cmd /C “cd /D {platformhome}{/}bin&jdwp”

Your Window must be as following:

Click Next:

13 – The Bootstrap Libraries panel displays a long list of jar files. Select all of the listed files except net_rim_api.jar and click Remove. Click Next.

14 – In the Sources and JavaDoc panel, click the Add button next to the JavaDoc window and type in or navigate to: C:\Program Files\Research In Motion\BlackBerry JDE 4.2.1\docs\api\.

Click Finish.
15 – Open a mobile application regularly. After that, change tab projects to files. Open build.xml file and chang it with:

<?xml version=”1.0″ encoding=”UTF-8″?>
<!– You may freely edit this file. See commented blocks below for –>
<!– some examples of how to customize the build. –>
<!– (If you delete it and reopen the project it will be recreated.) –>
<project name=”" default=”jar” basedir=”.”>
<description>Builds, tests, and runs the project .</description>
<import file=”nbproject/build-impl.xml”/>
<target name=”pre-jar”>
<available file=”${platform.home}/bin/rapc.exe” property=”do.rapc”/>
<condition property=”jpda.port” value=”8000″>
<isset property=”do.rapc”/>
</condition>
</target>
<target name=”post-jar” if=”do.rapc”>
<exec dir=”${platform.home}/simulator” executable=”${platform.home}/bin/rapc.exe” failonerror=”true”>
<arg value=”import=${platform.bootclasspath}”/>
<arg value=”codename=${name}”/>
<arg value=”-midlet”/>
<arg value=”jad=${basedir}/${dist.dir}/${dist.jad}”/>
<arg value=”${basedir}/${dist.dir}/${dist.jar}”/>
</exec>
</target>
<target name=”post-clean”>
<delete failonerror=”false”>
<fileset dir=”${platform.home}/simulator”>
<include name=”**/${name}.*”/>
</fileset>
</delete>
</target>
</project>

Builds, tests, and runs the project .
Thats All.
When you click run, your program will be run in defined blackberry simulator.

Share and Enjoy:
  • Print
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • Blogplay
  • Diggita
  • FriendFeed
  • LinkedIn
  • Ping.fm
  • RSS
  • Digg
  • Twitter
  • Yahoo! Buzz
  • Yigg
  • eKudos
  • Live
  • PDF
  • Add to favorites
  • email
  • Fark
  • SphereIt

Reader's Comments

  1. Unonimi UNITED STATES Windows XP Internet Explorer 6.0 |

    now I’ll stay tuned..

  2. Kali West NETHERLANDS |

    Hey There, I have to say, that I lover your blog.
    Please go on like that and don’t stop posting. I hope this comment motivates you to do so, smile
    regards, kali

  3. admin TURKEY Windows Vista Mozilla Firefox 3.0.10 |

    Thanks Kali ;)
    be motivated

  4. KrisBelucci REPUBLIC OF MOLDOVA Avant Browser |

    Original post by mattusmaximus

CommentComment

FireStats icon Powered by FireStats