Thursday, August 18, 2011

Installing Rhodes, Running app in Blackberry Simulator in windows

1. Download the Instant Rhodes installer from http://docs.rhomobile.com/rhodes/install#install-on-windows and install it.  This will install Ruby, Rhodes.

 Note :  For this you will need to create account and login to the blackberry website.

3. Create a sample rhodes app. 

rhodes app myspace

4. Go to build.yml in the app, and change the version for blackberry,. 

bbver: 6.0
 
 
5. do 'rhodes-setup' for adding Java path  
$ rhodes-setup
We will ask you a few questions below about your dev environment.
JDK path (required) (C:/Program Files/Java/jdk1.6.0_21): C:/Program Files/Java/j
dk1.6.0_21

for other paths just skip. 

6. Go to Rhodes installation path and find the rhobuild.yml. In my system the path is,
C:\InstantRhodes\ruby\lib\ruby\gems\1.8\gems\rhodes-3.0.2\rhobuild.yml


add this lines in rhobuild.yml for blackberry version 6.0
    6.0:
      jde: C:/Program Files/Research In Motion/BlackBerry JDE 6.0
      mds: C:/Program Files/Research In Motion/BlackBerry JDE 6.0/MDS
      sim: 9800

7. Run the app., rake run:bb

This opens blackberry simulator. Now find your app in the apps menu.



Cheers!



1 comment:

Fleure said...

I just had to the ".0" to the path name and then it worked!