01-31-2010 07:32 PM - last edited on 01-31-2010 07:50 PM
Since I've had to recently wipe the RC version of Windows 7 off of my Lenovo notebook PC and put the retail version on (Windows 7 Professional 32-bit), I've decided to write this walkthrough since I was able to replicate the steps that also work on my Windows 7 Ultimate 64-bit desktop machine.
These steps should also work on Vista and some steps can be skipped for XP.
Note: This walkthrough gets you a running copy of Eclipse with BlackBerry Java Plugin 1.1 for Eclipse (currently Beta 2) on a Windows 7 32-bit or 64-bit machine. I am not responsible if these steps render your machine unusable (even though they shouldn't, it is for my protection against blame
). As always, back up your existing files if you are nervous that this may cause some harm.
** Images coming soon **
Download all of your necessary software files
Files needed:
http://na.blackberry.com/eng/developers/devbetasof
Install Java SE
Some people like to install this directly to the C drive (and I agree) but I left the default of C:\Program Files\Java\ (C:\Program Files (x86)\Java for 64-bit systems).
Just follow the wizard to install it to either the default path or some path like C:\tools\java and your set.
** JUST NOTE THE PATH YOU'VE USED SINCE IT'S NECESSARY FOR THE NEXT STEP **
Set your PATH variable
This step wasn't necessary for my 64-bit machine but I'll put it here since it solves a lot of problems.
%JAVA_HOME%\bin;%JAVA_HOME%\jre\bin;
Install Eclipse
Installing Eclipse is as easy as extracting the zip file that was downloaded earlier. Placement is key.
Extract the downloaded zip file for Eclipse (eclipse-java-galileo-SR1-win32.zip) to C:\
Verify that a folder called C:\eclipse\ was created and eclipse.exe is directly under it.
** If you already have this folder and don't want to touch it, just rename it C:\eclipseBB\ or something to your liking for the rest of the steps in this walkthrough. **
Install the BlackBerry Java Plug-in
Find and double-click the downloaded exe from the download link and follow the steps. When choosing the existing eclipse install folder, choose your eclipse install folder and let the install finish.
Setting up permissions (Skip for XP)
Disclaimer: This isn't for the squeamish that care about security on the eclipse folder. I just wanted it to work and it worked. If you see a better way of keeping this folder secure and getting it to work, let me know.
Compatibility Mode (Skip for XP)
Pin to Start Menu and/or Taskbar (Optional)
This step is completely optional but why not take advantage of the new features in Windows 7?
Starting up Eclipse
We're almost there!!!
It will now ask you where you want to store your workspace. I use one workspace for all my projects and place it in C:\BBWS\.
Import your old projects (if any)
If you have projects set up in another workspace that were in the previous JDE Plug-in for Eclipse (or the JDE I'm not 100% sure but I believe so), you can import them with ease.
All set. If anyone has any questions, let me know. I also have a walkthrough on using subversion with all of this which works great for development between my different PCs as well as for deploying projects.
01-31-2010 07:48 PM
Thanks for this Jerome, excellent stuff. Not tested mind you, still running XP, the upgrade disk is in the list of things to do....
01-31-2010 07:52 PM
No problem Peter. I see you guys give a lot back to the community so I wanted to do the same. I'm pulling for RIM so I'd like to help as best as I could. I also didn't want to sacrifice losing my new operating system for my development.
So hopefully RIM will fix all of the issues and get it working on the newer OS but in the meantime, it'll hopefully serve everyone well.
02-01-2010 03:23 AM
Thank you alot for this great topic, but I have a problem in runnig my projects. When I build any imported blackberry sample, it builds well. But when I run it on the simulator, it just doesn't appear in the applications menu.
I am working on Windows 7, Eclipse 3.4.1, and JDE 4.5
Thanks again..
02-01-2010 11:04 AM - last edited on 02-01-2010 12:17 PM
ahmdsd_ostora wrote:Thank you alot for this great topic, but I have a problem in runnig my projects. When I build any imported blackberry sample, it builds well. But when I run it on the simulator, it just doesn't appear in the applications menu.
I am working on Windows 7, Eclipse 3.4.1, and JDE 4.5
Thanks again..
I was having this same issue on my notebook which is why I decided to wipe it (it didn't have final version of Windows 7 on it). Do you have a retail copy of Windows 7? Is it 32-bit or 64-bit? Is it a retail copy or is it the Release Candidate (RC) version?
Once I placed Windows 7 Professional (32-bit) Retail on my notebook, all my issues cleared up.
02-01-2010 05:03 PM
Nice write-up. I am up and running with this and have added the other BB component packs. You might want to add a section at the end of your write-up on how to add in the 4.X component packs.
One question, I need to build/test/run/debug against multiple BB component packs. In the old Eclipse Plug-in it was pretty straightfoward with respect to setting your current working component package. I don't see anything analagous to this in Eclipse with the new plugin. The only place where I see that I can set the target component package is when creating a new debug configuration.
Do you have any insight into how this is best done with the new plugin? My guy feeling right now is that this new plugin has made it harder to do what I need which is never a good thing. A new version should be making my life easier. Any help would be appreciated but I will continue to poke around and try different things.
Thanks!
Chris
02-01-2010 05:37 PM - last edited on 02-01-2010 05:49 PM
The new plug-in, in my opinion, makes it easier. What you'd do is right-click on the root of the project, go to Build Path > Configure Build Path.
Click on the JRE that is in there and click Edit or double-click on it. Choose the JRE/JDE Pack you'd like to use for that particular project (which is the best part).
As far as I know, when you download the exe file, the 4.X version component packs come with the installer.
02-11-2010 07:32 PM
Thanks for this! I wish I'd had it when I set eclipse up on my win7 workstation... it was a pain in the butt! If I have to wipe it anytime I know where to look ![]()
02-23-2010 11:27 AM
This is all very dandy for those of you who have the technology and understanding to execute such commands.
fOR ME, THAT JUST ISNT AN OPTION.
For those lesser mortals, like me, shouldnt we be able to ask BB or Microsoft to sort out their compatability problems first then deliver us a solution. After all we pay good money for their software and hardware. Why should we have to iron out their problems.
Im a consumer, ive paid my money, i dont have the time or the inclination to sit here trying to get these things to work for hours on end and possibly jeapordise other programs i have in the long run.
Surely a simply syncronisation problem should be so insurmountable for them to rectify.
02-23-2010 01:31 PM
I understand your frustration and am right there with you. They are working out all of the kinks and hopefully it'll be released soon (like tomorrow) but we have to wait until they release it unfortunately.
This is a workaround for the people who still want to give it a go (even if there is some hassle).