Earlier I was working in eclipse and it crashed due to some or other reason. Most of the time this is because I have opened a lot of applications that I am working on and this takes a bit of memory. So finally everything just get hanged and does not have enough RAM to work on. Thus, Eclipse just get hanged and what I do is to kill the eclipse process.
But next time when you try opening the workspace it gives you error “Workspace in use or cannot be created, choose a different one.”
So you will loose your last workspace and have to either import project in the newer workspace and this may result in headache. This is because, Eclipse creates a .lock file in the workspace and make the workspace lock. This is to avoid opening the same workspace in different eclipse process.
But when Eclipse is crashed or you kill the process to free the memory, it does not delete the .lock file in workspace folder and thus you cannot open the workspace again with eclipse.
To avoid this problem, simply go to the .metadata folder in your workspace and delete the .lock file.Please do not delete the .lock file if eclipse is already opened.
But next time when you try opening the workspace it gives you error “Workspace in use or cannot be created, choose a different one.”
So you will loose your last workspace and have to either import project in the newer workspace and this may result in headache. This is because, Eclipse creates a .lock file in the workspace and make the workspace lock. This is to avoid opening the same workspace in different eclipse process.
But when Eclipse is crashed or you kill the process to free the memory, it does not delete the .lock file in workspace folder and thus you cannot open the workspace again with eclipse.
To avoid this problem, simply go to the .metadata folder in your workspace and delete the .lock file.Please do not delete the .lock file if eclipse is already opened.
No comments:
Post a Comment