Error while updating Eclipse - eclipse

I get an error while trying to update Eclipse (Kepler Service Release 1; Build id: 20130919-0819)
Eclipse wants to update the following package:
Eclipse Standard/SDK 2.0.2.20140224-0000
An error occurred while uninstalling
session context was:(profile=epp.package.standard, phase=org.eclipse.equinox.internal.p2.engine.phases.Uninstall, operand=[R]org.eclipse.rcp.configuration_root.win32.win32.x86 1.0.0.v20130521-1847 --> null, action=org.eclipse.equinox.internal.p2.touchpoint.natives.actions.CleanupzipAction).
Backup of file E:\Program Files (x86)\eclipse\eclipse.exe failed.
Can not remove : E:\Program Files (x86)\eclipse\eclipse.exe
This error also occurs when I try to update as administrator.
Does anybody have any idea what would cause this?

Solution extracted from this forum http://www.eclipse.org/forums/index.php/t/487240/:
Run eclipse
Rename eclipse exe to eclipse.exe.back
Run updates
Updates executed successfully
It worked for me.
See Eclipse kepler can't install updates.

The eclipse update feature seems to mess up a lot of times with broken dependencies and missing configurations.
You can fix them all up manually if you would like to but that would take some time to debug what is wrong and then how to fix it.
The best advise I can give you is to download a fresh copy of the required Eclipse version and then import your workspace in this new Eclipse installation

Related

Aquire container failed! in Eclipse IDE at Update Maven

I'm updating maven dependencies in my project with Maven Update command of Eclipse IDE 2022-12 version (last version) and the ide if saying to my the next error:
Do anyone know how to solve this error?
I'm deleted .metadata folder, purge local repository .m2 for maven and nothing was well.
Thanks!! And Happy New Year 2023!!
For me, closing all projects in different working sets except the one I want to build solved the issue for the moment (of course only a temporary solution).

"zip file is empty" when installing RTC Eclipse plugin

I'm trying to install the RTC-Client-p2Repo-4.0.5.zip (290.9 MB) eclipse plugin in Eclipse Luna version 32 bit on Linux. After selection the jar file and hitting finish, I get the error at the bottom. The jar file size is 290.9 MiB (305,030,442 bytes) and I am able to extract it.
An error occurred during the org.eclipse.equinox.internal.p2.engine.phases.CheckTrust phase.
session context was:(profile=epp.package.jee, phase=org.eclipse.equinox.internal.p2.engine.phases.CheckTrust, operand=, action=).
Error reading signed content.
zip file is empty
An RTC 4.x+ is meant to be installed in an Eclipse 3.6+ (as in "Install RTC Eclipse Client 4.0 into an existing Eclipse 3.6.2 using Installation Manager")
The support for a latest Eclipse 4.4 Luna is not guaranteed.
I re-installed eclipse and that fixed the issue. The ".eclipse" folder may need to be removed too, although I didn't see one in my Linux VM.
Issue Identified & Solved
This issue arises when u try to retrieve the codBase from RTC repository to your local Workspace.
Usually u might be facing following issue :
Jar files in your project gets corrupted due to inevitable pushing of code in RTC repository as you would have been getting the following error where in my case Platform.jar was corrupted.
WARNING: Failed to process JAR [jar:file:/D:/Workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/ProjectName/WEB-INF/lib/platform.jar!/] for TLD files
Solution :
Try Replacing the corrupted jar files in your workspace at the respective location.
Try to push fresh/updated code in RTC repository,so the jar files wont get corrupted
My solution was to go through Help-->Eclipse Marketplace, search for the plugin and install it from there.

Can't run the sample project on spring STS

After installing STS successefuly on Juno, i opened a new MVC project, fixed the errors in the sample STS project by adding all the required spring jars, and now there are 2 problems:
I can't get the option: "Run on server" (altough i did set a tomcat's server in the workspace).
With every step i make (clean, delete etc') i'm getting the follwing error:
Errors occurred during the build.
Errors running builder 'Faceted Project Validation Builder' on project 'First_STS_Project'.
Could not initialize class org.eclipse.jst.j2ee.project.facet.IJ2EEFacetConstants
Errors running builder 'Validation' on project 'First_STS_Project'.
org.eclipse.jst.j2ee.project.facet.IJ2EEFacetConstants
This is not a local problem on my specific workspace, because i getting the same error in my second PC as well.
I don't recommend JUNO since it has many bugs and it also has a bad impact in performance. If you're in Windows, try to use short paths when installing the plugins or selecting the workspace. I have similar issues when working in windows. If I create a workspace in c:/users/Marcelo/Documents/java/workspaces, I always get issues, but whenever I change to "c:/workspaces" directly, works perfectly. Try with Eclipse Indigo instead. Also try to use the latest version of tomcat. If any of the previous recommendations fix the issue, (that could be weird), try to install the STS plugin again but check all the features, maybe a component is missing.

Pydev missing after upgrading Eclipse on FreeBSD

I recently updated my ports on my FreeBSD 9.0 release machine and I think eclipse was upgraded due to a port upstream forced Eclipse to be rebuilt. Now Pydev is gone. I tried uninstalling then reinstalling Eclipse, then installing Pydev using pydev.org/updates inside Eclipse. It appears to install ok but I can't create a Pydev project or use the Pydev view. I tried removing my ~/.eclipse folder to force the creation of a new one, and reinstalling Eclipse and Pydev to no avail. What am I doing wrong? I'm running Eclipse Indigo version 3.7.1 build id: R3_7_1
This question was most similar to mine, but the solution didn't work for me. I also tried pointing my install site as: http://update-production-pydev.s3.amazonaws.com/pydev/updates/site.xml per another question on StackOverflow, to no avail.
After some more testing I finally got the newest FreeBSD port to work. I had to launch and install the plugins as root. It didn't work another time I ran it but, this great troubleshooting document helped out. I methodically went through each step one by one, and the logs indicated there was an error on my /usr/local/lib file it was trying to unzip. My user doesn't have write access to that directory but root does. I don't know why it didn't work the last time I ran it as root, perhaps I didn't install the plug-in as root. It works now, so I'm happy. Thanks Fabio, for your input.
I'm not sure how FreeBSD packages things, so, maybe an easy way out would be getting Eclipse from Eclipse.org and installing PyDev on that fresh install (or if you're also doing web stuff, I'd suggest grabbing Aptana Studio 3, which comes with PyDev preinstalled, so, you don't have to worry about configuring it).
See: http://pydev.org/download.html for details

Unable to install the Force.com plugin for eclipse. getting md5 mismatch

I'm trying to install the Force.com IDE plugin. I found it, it started downloading, but once the plugin goes to install I get the following error at about 45% completion:
Installing software has encountered a problem. An error occurred while collecting items to be installed
When I click details about this error, I get the following. Anyone know how to fix this and get the plugin installed? Thanks in advance
An error occurred while collecting items to be installed
session context was:(profile=SDKProfile, phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=).
Problems downloading artifact: osgi.bundle,com.salesforce.ide.api,23.0.2.201201091635.
MD5 hash is not as expected. Expected: 97a6329f82c422a61e9b1bc28be7cace and found ef8b1c2b63c7d04acaa6bf41f4b8570c.
My solution: download plugin jar files manually and put them into eclipse installation directory. The problem was in corrupted (partial) download of jars by eclipse.
Download all jars of particular needed version from http://www.adnsandbox.com/tools/ide/install/features/ and http://www.adnsandbox.com/tools/ide/install/plugins/
Make sure to use some download manager to ensure files integrity!
Then put them to /features/ and /plugins/ folders of your eclipse installation directory accordingly.
Run plugin installation as described by salesforce (Jars will not be downloaded again) - Success!
Make sure you're running Eclipse as an Administrator (right click, select "Run as Administrator") when installing plugins.
If that doesn't help, move your Eclipse folder to the C:\ on Windows because there are issues with the Program Files folder permissions. Then run it as an Administrator and try to install the plugin again.
I just got it working;
Install Eclipse 3.6.1 (Helios SR1)
The IDE FAQ recommends Eclipse 3.5 and 3.6, but the install instructions link you to 3.6 SR1 .
Ensure you only have the latest JRE
I am running Java 6 Update 26 as of this post.
Make sure you don't have any legacy JREs installed
I had to uninstall a 1.4 Java environment before the IDE install would work.
Then follow what Matthew Keefe said;
Run Eclipse As Administrator
Move the Eclipse program directory outside of the Program Files directory.
Edit: Eclipse 3.7 installs the IDE successfully once the Java version is correct.