This morning when i started the eclipse and tried to refresh the contents from salesforce server, i got an error something like “com.salesforce. ide.api.metadata.types. Metadata$JaxbAccessorF_fullName cannot be cast to com.sun.xml.bind.v2.runtime.reflect.Accessor“.
I started searching for the solution and found below solution on salesforce community.
Note – I was using Windows 7 operating system.
- Use JRE v6 update 27 – 64bit (downgraded from JRE 7)
- Use JDK v6 update 27 – 64 bit (downgraded from JDK 7)
- Re-installed Eclipse SDK 3.6.2
In short you can say that you need to downgrade JDK installation.
However, uninstall and re-install would have been taken much of my time and therefore i started to search for the different solution and found below method and Solution 2 – worked for me!!!
Use the -clean command of eclipse while opening. It can be done by adding the attribute “-clean” in the shortcut icon of the eclipse.
or add the following line to the “myeclipse.ini” file, near the top:
as you can see in below image , right click on eclipse shortcut and add the “clean”.
What does mean by : -clean argument?
If you are having problems getting the system to pick up your new plug-in, then perhaps your configuration is out of date. This might be the case if you just unzipped a new plug-in into your /plugins directory and started up…Eclipse had parsed and cached the list of plug-ins that were previously in that directory and now it has changed without it recognizing that fact. You can clear any per-configuration cached data by using the -clean command line argument.
Note that -clean flushes the registry caches (amung other information) and forces the plug-in manifests to be parsed in order to regenerate the registry. This is not optimal for everyone all the time because (depending on the size of your development environment) it may take up to a couple of minutes.
Case : If you have more than one JRE installed.
In Eclipse “Windows | Preferences | Java | Installed JREs“, select JRE 6, if entry is not visible and JRE 6 is installed then manually add the JRE and select.
Leave a Reply to Jitendra Zaa Cancel reply