"Workspace is in use or cannot be created" after Eclipse closes unexpectedly

Asked

Viewed 486 times

1

My Eclipse closed unexpectedly. When trying to open again, it shows the following message:

[Popup com o alerta "Workspace is in use or cannot be created"]

With the words:

The default Workspace [...] is in use or cannot be created. Please Choose a Different one.

In free translation:

The standard working environment [...] is in use or cannot be created. Please choose another one.

What is the procedure to save my Workspace?

I am using Eclipse Oxygen, running with JDK 8u151. Windows 10

  • Could you explain why the negative so I can improve the question?

1 answer

2

The mistake was caused by something similar to what the @acklay went through with Git: Error: Unable to create 'C:/Myproject/. git/index.lock': File exists

In this case, Eclipse created inside the folder $WORKSPACE/.metadata one latch file called .lock:

arquivo de trava <code>.lock</code> dentro do <code>$WORKSPACE/.metadata</code>

I tried to remove the file, but...

não é possível remover o arquivo

I tried to find the file eclipse.exe, but not found in the task manager (had aborted unexpectedly, after all). So I left for the solution indicated by @rray in chat: restart the computer.

After rebooting the machine, Eclipse opened normally. I didn’t even need to delete the crash file.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.