Install or Update Force.com IDE in Eclipse – Salesforce.com

First step to start with coding in Salesforce.com is to install the force.com IDE in Eclipse. I will target the new version of eclipse which is Kepler. Force.com IDE is supported in Eclipse Juno as well as Eclipse Kepler.

So, we will start with launching the Eclipse.

Eclipse Kepler

Eclipse Kepler

then goto Help ->  Software Update / Install new software…

Eclipse Software update for salesforce

Then Add Force.com site.

  1. Click “Add Site”. The Add Site dialog opens.
  2. Set the Name to “Force.com IDE” and the Location to “http://media.developerforce.com/force-ide/eclipse42“, then click “OK.”

Eclipse add site Salesforce

After you add the site, you will get the list of all available plugins, click on force.com and then click Next.

In the Install dialog, click “Next” then accept the terms and click.

Eclipse check and next Salesforce

follow the instructions and IDE will be installed.

After Installation, Create new Project of type Force.com.

New Salesforce Project Settings

As You can see in above snap following details needed while creating the salesforce project.
  • Salesforce UserName
  • Salesforce Password
  • Salesforce Security Token

You can always watch this space for official documentation of Salesforce regarding installing Force.com Plugin in Eclipse.

How to update Force.com IDE ?

Salesforce releases new feature almost three times a year like Winter, Spring and Summer release. So at those time, API version also gets changed. If you will not update your force.com IDE, you will always end up with creating Apex and other resources in Old version. So it is always recommended to update existing installation of force.com IDE. To update IDE you have to follow below steps :

  1. Open Force.com IDE and Navigate to Help | Show Force.com Start Page.
  2. On Upper right hand corner of new Window, there will be link to update IDE.

Salesforce.com IDE Installation error 
While installing eclipse, if you get error something like

Cannot complete the install because of a conflicting dependency.
  Software being installed: Force.com IDE 20.0.1.201011121559 (com.salesforce.ide.feature.feature.group 20.0.1.201011121559)
  Software currently installed: Shared profile 1.0.0.1284708747720 (SharedProfile_epp.package.java 1.0.0.1284708747720)
  Only one of the following can be installed at once:
    Structured Source Editor 1.2.2.v201008232126 (org.eclipse.wst.sse.ui 1.2.2.v201008232126)
    Structured Source Editor 1.1.102.v200910200227 (org.eclipse.wst.sse.ui 1.1.102.v200910200227)
  Cannot satisfy dependency:
    From: Shared profile 1.0.0.1284708747720 (SharedProfile_epp.package.java 1.0.0.1284708747720)
    To: org.eclipse.wst.sse.ui [1.2.2.v201008232126]
  Cannot satisfy dependency:
    From: Force.com IDE 20.0.1.201011121559 (com.salesforce.ide.feature.feature.group 20.0.1.201011121559)
    To: org.eclipse.wst.html.ui [1.0.0,2.0.0)
  Cannot satisfy dependency:
    From: HTML UI Source Editor 1.0.401.v200908111935 (org.eclipse.wst.html.ui 1.0.401.v200908111935)
    To: bundle org.eclipse.wst.sse.ui [1.1.0,1.2.0)

Solution :
This issue is actually caused by Windows 7 UAC (User Access Control) which doesn’t allow Eclipse to be updated if you’re running it from within the “c:\program files” directory. Eclipse doesn’t know how to handle that problem and stupidly reports some misleading conflict information. If you move Eclipse install to “c:\eclipse” It will work just fine.

Check this post if you are getting error - Unable to refresh from server in IDE

Please leave your comments about this article so that i can answer.

  • Pingback: Step by Step Salesforce Tutorial - Creating custom object - 1 of n | Shiva Blog

  • nandan kumar

    thanx dude to help me……..god bless uuuu.

    • Sukumarmalladi22

      how to get Security Token plse tell me

      • Anonymous

        Hi Rachna,
        Go to Set up-> Personal Information there you will get option to reset the security token. it will be delivered by email.
        Regards,
        Jitendra Zaa

  • Arun

    How ti use force.com ide after installation.
    please let me know..

  • Sukumarmalladi22

    how to get Security Token plse tell me

    • Anonymous

      Hi Rachna,
      Go to Set up-> Personal Information there you will get option to reset the security token. it will be delivered by email.
      Regards,
      Jitendra Zaa

  • nani

    hi 

    I am beginer in salesforce.
    I want to know about eclipse?
    what is the use of the eclipse?

  • Souvik Bose

    Getting below mentioned error message when try to create new project with necessary user name / password and secure token.
    User or organization does not have sufficient permissions

  • Ajay Gupta

    Hi,

    I created a developer account of force.com and act as an administrator have all the permissions. still I am getting below error message when trying to create a new Force.com project.

    “Force.com Projects require an organization with the Metadata API enabled. API is not enabled for this organization.”

    • JitendraZaa

      Hi Ajay,
      Are you sure this is developer account ? or its 30 day trail account. Both are different.

  • Krk12787

    plz help me i am getting error with 3 jar files ,where i can find correct jar files

    An error occurred while collecting items to be installedsession context was:(profile=epp.package.java, phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=).Problems downloading artifact: osgi.bundle,com.salesforce.ide.api,24.0.0.201202291629.MD5 hash is not as expected. Expected: 7251ab037ae632a5a9835c7c07210451 and found 77e46ace5965cf0623d63463f48d5394.Problems downloading artifact: osgi.bundle,com.salesforce.ide.core,24.0.0.201202291629.MD5 hash is not as expected. Expected: 44db36699ca7fdd38917fced4e63c3b3 and found 87fc7476cb4c76ea40b8539e2a8cc233.Problems downloading artifact: osgi.bundle,com.salesforce.ide.documentation,24.0.0.201202291629.MD5 hash is not as expected. Expected: 6d87eb2e76e7e19f7b709682e5272dfc and found 45ba7db9e0ef40bc5cc1a346cbac500f.
     

  • Krk12787

    HI
    plz help me i am getting error with 3 jar files ,where i can find correct jar files 

    An error occurred while collecting items to be installedsession context was:(profile=epp.package.jee, phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=).Problems downloading artifact: osgi.bundle,com.salesforce.ide.documentation,24.0.0.201202291629.MD5 hash is not as expected. Expected: 6d87eb2e76e7e19f7b709682e5272dfc and found 573aece0e3cabbd49b8c15eb833f5274.Problems downloading artifact: osgi.bundle,com.salesforce.ide.api,24.0.0.201202291629.MD5 hash is not as expected. Expected: 7251ab037ae632a5a9835c7c07210451 and found a0c3c4377b0bc7fc6396cdee4abb179c.

  • raja sekhar

    hi friends  i have problem with force.com IDE. here is the error

    An error occurred while collecting items to be installedsession context was:(profile=epp.package.jee, phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=).Problems downloading artifact: osgi.bundle,com.salesforce.ide.documentation,24.0.0.201202291629.MD5 hash is not as expected. Expected: 6d87eb2e76e7e19f7b709682e5272dfc and found 573aece0e3cabbd49b8c15eb833f5274.Problems downloading artifact: osgi.bundle,com.salesforce.ide.api,24.0.0.201202291629.MD5 hash is not as expected. Expected: 7251ab037ae632a5a9835c7c07210451 and found a0c3c4377b0bc7fc6396cdee4abb179c. 

  • Puneetgoel

    hello sir,

    i am trying to create a new force project using my id and password with the token number. But when I click to next it shows error
    Unable to fetch organisation “my id”
    Please help me .

    • JitendraZaa

      Hi Puneet,
      Are you selecting correct type of organization? like sandbox or production?
      This error comes when there is internet connection problem or username does not exist.

  • Ashish

    http://www.filefactory.com/file/76nkolv9i91r/n/eclipse.zip

    Download this eclipse .zip file its already have force.com IDE by default.

  • banu

    Hi,
    I installed the Force.com IDE standalone where i didn’t find the new project.It only shows the eclipse provisioning.Plz help me.

  • Debashis

    Hi,

    I have installed Eclipse Juno and trying to add the Salesforce.com IDE to it. When I try to add using the URL: “http://www.adnsandbox.com/tools/ide/install/“ the software throws an error as below:

    Cannot complete the install because one or more required items could not be found. Software being installed: Force.com IDE 25.0.0.201206181021 (com.salesforce.ide.feature.feature.group 25.0.0.201206181021) Missing requirement: Force.com IDE 25.0.0.201206181021 (com.salesforce.ide.feature.feature.group 25.0.0.201206181021) requires ‘org.eclipse.update.ui 0.0.0′ but it could not be found

    Any on this will be appreciated.

    Thanks,
    Debashis

    • nishwal

      I am facing same problem. cant install force.com IDE in Eclipse Juno(4.2). Even i am not able to upgrade api from version 24 to 25 in Eclipse 3.6 (Java developers) in Window 7 64 bit.

      • JitendraZaa
        • nishwal

          I have copied the missing jar file from previous version of eclipse to Eclipse juno and then i was able to install the plugin. However i am stuck with new problem. Eclipse loads fine when i have no project or one small project in workspace but as i download all my projects in workspace, it does not load and stucks with loading com.salesforce.ide.core . any suggestions for it?

  • Keerthan

    i have the same problem with the login. I am having dev account, and i ve appended the security token too but it says invalid username or pass or user locked out… what does it maen?

    • JitendraZaa

      Hi..

      Login to salesforce and see if you are getting any error message at bottom of your user.

      It will clear exact error you are getting.

      • keerthan

        I can login but only in eclipse its giving this error.

        • Fabian Manzano

          Hey keerthan were you able to find the solution for your error? I am getting the same thing, its driving me nuts!

  • Ralph Yozzo

    is there any way to run these salesforce plugin menu items from the command line. Or where is the source to the salesforce eclipse plugin? we’d like to run “force->refresh from server” from the command line and also force a build from the command line.

    • JitendraZaa

      Hi Ralph, I DOnt think that its possible. Eclipse plugins are not exposed for command line operation. My suggestion us to use ANT migration tool. Package.XML already present so you can use existing structure of eclipse. This is perfect solution in our case. Try searching ant tool in this blog. You will find article for that.

      • Ralph Yozzo

        Hi JitendraZaa, thanks so much!

        We already use Ant for the push. But we need to create the package file and all the profiles and classes and pages for a subset of our project. (similar to the way changeset works)

        But the only way that we see to create the profile files is through the salesforce eclipse plugin.

        This is a very painful process because we’d like to automate this and we need to manually “refresh from server” and “refresh” manually in eclipse in order to prepare for the ant build scripts.

        Thanks for answering!