Home » Odeon Blogs » Bogdan, Methodical Coder »

BlackBerry Environment Setup Under Ubuntu

BlackBerry Environment Setup Under Ubuntu

Develop on Blackberry!

Notes:

These instructions were developed under Ubuntu 10.04 (Lucid Lynx), wine version 1.1.42.

Before proceeding with the setup, create a developer account on http://na.blackberry.com/eng/developers/

Steps:

1. Install wine

  1. sudo aptitude install wine

2.From winetricks you need gdiplus and msxml3. You can get winetricks from here http://wiki.winehq.org/winetricks. To install these simply run:

  1. sh winetricks

and a GUI with a list of available packages will open.

3.Install Sun JDK for windows on wine. Download the latest version of JDK for Windows (remember to get the Windows version, not the linux one. You'll be installing it with wine) from http://www.java.sun.com. Go to your download folder and run:

  1. wine jdk-6u20-windows-i586.exe

4.After you install the JDK you need to insert your JDK path on wine. For this, edit ~/.wine/system.reg and find this line:

  1. "PATH"=str(2):"C:\\Windows\\system32;C:\\Windows"

Change it so it'll look like this:

  1. "PATH"=str(2):"C:\\Windows\\system32;C:\\Windows;C:\\Program Files\\Java\\jdk1.6.0_20\\bin"

After this you can try:

  1. wine javac

to see if the new settings are correct.

5.Install Eclipse. Do not install from aptitude. You need to get the windows 3.5.2 version from here http://www.eclipse.org/downloads/packages/release/galileo/sr2 and extract eclipse in your home folder. It needs to be in your home folder, otherwise RIM JDE won't work.

6.Start Eclipse by going into ~/eclipse and running:

  1. wine eclipse

and go to: Help -> Install New Software and click on Add. In the location field insert this link http://www.blackberry.com/go/eclipseUpdate/3.5/java and click OK. From the list that is generated select “Blackberry Java Plug-in” and “BlackBerry Java SDK 5.0.0” and start the installation. Now you'll use the user/password created on http://na.blackberry.com/eng/developers/. You'll be prompted for those. After eclipse finishes the installations, restart it.

7.Go to eclipse_home/plugins/net.rim.ide..../components/bin and, on all .rc files, change “\” with “/”.

8.Go to eclipse_home/plugins/net.rim.ide..../components/simulator/ and change paths on SimPackage_JDE.rc

Now you should have a working environment.

Links:

http://supportforums.blackberry.com/t5/Java-Development/Eclipse-JDE-Plugin-Linux-a-working-environment/m-p/192473


Category: BlackBerry


Tagged as: BlackBerry eclipse ubuntu

Discussion

  1. Thanks Bogdan for this. It was really helpful. Here's a bash script I wrote that will help with step 7.

    for i in *.rc; do sed -i 's/\\/\//g' $i; done


  2. Burnninator on Aug 20, 2010 - 18:44 said:

    I had to do "./winetricks cc580" to get it to run without crashing. Using Ubuntu 10.04, wine 1.2, jdk1.6.0_21.


  3. Burnninator on Aug 21, 2010 - 9:50 said:

    Also had to remove the "Tab" spacing, it was borking my code. That was frustrating. Here's instructions. http://www.dotkam.com/2007/03/21/changing-tabs-to-spaces-in-eclipse/

    After that I could fix the code formatting with "ctrl+shift+f"

    I think I'm good to go now.


  4. Thanks alot guys for your comments. It really works well. Another thing though, for the simulator to connect to the internet, you have to create a run.sh file under eclipse_home/plugins/net.rim.ejde..../components/MDS and follow the instructions from here http://www.slashdev.ca/2008/04/03/mds-simulator-in-linux/.
    Before starting the simulator just run "sh run.sh".


  5. I had to change from http://www.blackberry.com/go/eclipseUpdate/3.5/java to http://www.blackberry.com/go/eclipseUpdate/3.6/java because there were errors when trying to enter the username and password.

    I'm still installing this, didn't finished yet. I read somewhere that for using http://www.blackberry.com/go/eclipseUpdate/3.6/java I had to use next version of eclipse


  6. Vinay Kumar on Jul 27, 2011 - 2:18 said:

    Hi,

    I have been trying to do this from days. No luck yet.

    1. Downloaded wine (Working fine)
    2. Downloaded java (Working fine)
    3. Downloaded eclipse (Working fine)
    4. Trying to install BB Plugin via update site
    * Unable to see any plugin with the exception of BB SDK
    * Downloaded the BB Plugin from BB Site and copied
    under eclipse/plugins folder and did the changes
    as given in this site
    * Still unable to see Blackberry in my eclipse

    Am I missing something ? Please help
    -Vinay




Leave a Comment :

(required)


(required)




(required)




(required)






Leave a Comment


Page generated in: 0.20s