Welcome to Mobile Blog — Eray Ince
Just another WordPress weblog
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.

Reader's Comments
Comment
Options
-
January 7, 2009 -
Blackberry, J2ME -
4 comments
-
Comments RSS -
Del.ico.us
-
Digg!

now I’ll stay tuned..
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
Thanks Kali
be motivated
Original post by mattusmaximus