Take the 2-minute tour ×
Salesforce Stack Exchange is a question and answer site for Salesforce administrators, implementation experts, developers and anybody in-between. It's 100% free, no registration required.

I am getting following error while deploying metadata to Force.com Server

Error while deploying metadata using Force.com IDE

share|improve this question
add comment

3 Answers 3

up vote 6 down vote accepted

This error is presented (not just during deployments) when Java7 (1.7) is installed. Ran into it myself this morning when trying to set up a new project.

Removing Java7 from the machine so that Eclipse cannot reference it, should revert you back to having just the 1.6 JDK available and you'll be back in business.

Worst case, remove all installed versions of Java and then download & install JDK 1.6 again. If you're running a 32-bit version of Eclipse be sure to install the 32-bit JDK.

share|improve this answer
1  
I'm getting this one sometime when I create new project - project is created, can't download or create any metadata files because of this error, restart of Eclipse and it works again. –  eyescream Dec 8 '12 at 10:08
    
Fully removing JDK1.7 isn't technically required (it wasn't an option for me) - if you edit eclipse.ini (or forceide.ini) to include the well-documented "-vm" option, and then make sure that the Eclipse "Installed JREs" tab in Preferences > Java doesn't include any 1.7 JREs, you should be OK. –  jkraybill Dec 10 '12 at 1:18
add comment

launch your IDE with the clean option

“C:\Program Files\MyEclipse 6.6\eclipse\eclipse.exe” -clean

share|improve this answer
1  
and if that doesn't work, try downgrading your java version to 1.6 –  fourq Dec 7 '12 at 13:41
add comment

As explained by others this happenns when JRE is updated from 1.6 to a higher version. The way i handle is by going to Window -> preferences in ForceIDE top menu.

You will get a dialog window, Click on Java ->Installed JRE and uncheck jre7. Restart ForceIDE it should work. enter image description here

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.