-->

Eclipse failing to open

2020-08-26 10:37发布

问题:

My Eclipse IDE keeps failing to open. I've updated my java to the latest version, I've got the newest Eclipse Version. I'm running x64 Windows, it seems like the Error log is trying to use x32, but I've installed a x64 version of Eclipse. I tried re-installing the x64 version and it still didn't work.

In the Pastebin I've linked is the contents of the Log.

http://pastebin.com/An5CRq3e

EDIT: I'm using x64-bit version of Java

回答1:

Thank you for copying/pasting the log - definitely helpful!

This line looks significant:

Caused by: org.eclipse.core.internal.resources.ResourceException: Incompatible file format. Workspace was saved with an incompatible 

SUGGESTIONS:

  1. From a command prompt:

    • cd into your Eclipse directory

    • type eclipse -clean -clearPersistedState

  2. Rename (or delete) any old workspaces to force Eclipse to create a new workspace



回答2:

The same happened to me: without renaming my workspace I just deleted the corrupted org.eclipse.core.resources folder in the workspace ($ECLIPSE_WORKSPACE/.metadata/.plugins/) and then Eclipse started successfully again.

Yes, I had to re-import all my projects (as Existing Projects) into the workspace.


Refs: Eclipse forum



回答3:

Yes I have also removed org.eclipse.core.resources folder from my Eclipse workspace : workspace.metadata.plugins\org.eclipse.core.resources and also run the command in command promt: >eclipse.exe -clean -clearPersistedState

After doing this Eclipse should work without any problem

or

open new workspace



标签: java eclipse