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

1

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

[Popupwiththe"Workspace is not used or can not be created" alert]

With the words:

  The default workspace [...] is in use or can not be created. Please choose a different one.

Free translation:

  

The default desktop [...] is in use or can not be created. Please choose another one.

What is the procedure for saving my workspace?

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

    
asked by anonymous 31.10.2017 / 18:47

1 answer

1

The error was due to something similar to what @acklay passed with Git: Error: Unable to create 'C: /MyProject/.git/index.lock': File exists

In this case, Eclipse created within the $WORKSPACE/.metadata folder a lock file named .lock :

Itriedtoremovethefile,but...

Itriedtofindtheeclipse.exeprocess,butIdidnotfinditinthetaskmanager(ithadabortedunexpectedly,afterall).SoIsetoutforthe solution indicated by @rray in chat : restart the computer.

After restarting the machine, Eclipse opened normally. I did not even need to delete the lock file.

    
31.10.2017 / 19:07