My hard drive died on Friday, so I’ve been re-installing applications today. I decided to document the steps that I took to install the Salesforce IDE (Eclipse) since I had a hard time figuring out what to install both the first time, and once again today.
So here we go:
First of all, Salesforce has a help page for this, but it lists specific versions of Eclipse and the JRE virtual machine. I wanted a more generic set of instructions that would be useful (hopefully) a year from now. The Salesforce help page for installing the Eclipse IDE can be found here.
My laptop is running Windows XP, so I may be unaware of any nuances to do with other Operating Systems. Feel free to comment if you find anything.
The Eclipse IDE requires a Virtual Machine to run. When I visited the eclipse.org site, they directed me to an IBM page for a virtual machine, but I couldn’t find any download links. Instead I used Sun’s virtual machine, which you can find here. I downloaded and installed JRE 6, Update 13.
The latest Eclipse downloads can be found at http://www.eclipse.org/downloads/. On this page, download “Eclipse IDE for Java Developers”. I didn’t see any indication of what the latest release was, but the file name was eclipse-java-ganymede-SR2-win32.zip. After downloading, I was able to find a version in the eclipse/readme/readme_eclipse.html file. This release was 3.4.2 with a last revised date of Jan 22, 2009.
Extract the folder onto your system someplace. There really isn’t an ‘install’. You simply copy the eclipse folder to where ever you want eclipse to live. I put mine under “C:\”, but “C:\Program Files” wouldn’t have been a bad choice either.
Now that the Eclipse IDE is “installed”, navigate to the eclipse folder and run eclipse.exe. Now you’re ready to install the Salesforce specific package…
Eclipse allows you to support various environment types. Salesforce took advantage of this by creating a version for their development environment. To download and install it, follow these steps:
1. Click Help->Software updates then click the “Available Software” tab.
2. Click “Add Site“. Set the URL to “http://www.adnsandbox.com/tools/ide/install/”. Click OK. This will add the provided URL to the list of sites.
3. Click the + to the left of the site that you just added(http://www.adnsandbox.com/tools/ide/install/). You should see Force.com IDE listed. Select the checkbox next to Force.com IDE.
4. Click the + to the left of Web Tools (WTP) Update Site, then click the + to the left of Web Tools Platform (WTP) 3.0.4 and Select the checkbox next to “Web Developer Tools” (Note: The Salesforce instructions are to install the Web Standard Toos (WST) Project, but this would not work for this version of Eclipse. I found Web Developer Tools through some trial and error)
5. Click Install. This will download and install the specified software.
When the download/installation is done, it will ask you to restart Eclipse. Click Ok to do so.
Now go to Windows->Open Perspective->Other and you should see Force.com listed. Select it and click OK.
You should be all set!
Click File->New->Force.com Project, then enter the requested information and you’ll be ready to start coding!