Monday, December 16, 2013

[Eclipse][Solved with Image] Workspace in use or cannot be created, chose a different one in window plaflat

When I got the msg i found the solution from stackoverflow is not exactly worked for me.
I think maybe it is because of the platflat or Eclipse version.
http://stackoverflow.com/questions/8489322/eclipse-says-workspace-in-use-or-cannot-be-created-chose-a-different-one-ho

Eclipse Java EE IDE for Web Developers.
Version: Kepler Service Release 1

Operating System: Windows XP sp3
Solution in stackoverflow by jap1968 :
Just delete the .lock file in the .metadata directory in your eclipse workspace directory

The solution for me is mainly same as jap1968 but the directory is different in windows platflat.

for example, I installed my Ecplise in this path:
C:\Documents and Settings\xenialaw\My Documents\Downloads\eclipse-jee-kepler-SR1-win32\eclipse\
And the .lock is placing here:
C:\Documents and Settings\xenialaw\My Documents\Downloads\eclipse-jee-kepler-SR1-win32\eclipse\p2\org.eclipse.equinox.p2.engine\profileRegistry\epp.package.jee.profile
Related Image:





Delete the .lock document and restart the Eclipse can work.
Another method to look for the ".lock" in the root of directory Eclipse, 
Delete it would be more easy

About the reason why delete the .lock then work, 
it's because 
Eclipse creates a .lock file in the workspace that makes the workspace 'lock' its state. This is to avoid opening the same workspace in different eclipse process.
Detail is in this site:

No comments :

Post a Comment