Shaun Mccran

My digital playground

29
M
A
Y
2010

Eclipse SDK workspace issues and problems creating projects

I've recently picked up a new laptop, and in the process of setting it up for development purposes I've had some issues. Some are Windows 7 based, the others are Eclipse workspace related.

I thought I'd put together a short entry on the issues I encountered, and how I overcame them.

Firstly I went and downloaded the newest of version of the Eclipse SDK, you can get it here: http://www.eclipse.org/downloads/

Workspace creation issues

After installing it I received the error: "Workspace in use or cannot be created, choose a different one ", it seems there are two potential issues that can cause this. The first is a problem with the '.lock' file.

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.

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.

Look for the '.lock' file in your workspace and delete it.

The second problem is where there is an error in the Eclipse preference file. To fix this at a file level go to 'C:\eclipse\configuration\.settings\org.eclipse.ui.ide.prefs.' open this file in text editor and look for the line with RECENT_WORKSPACES on it. Delete the values there and your problem may be solved.

Read and write issues creating projects

Windows 7 User Acceptance Control will stop Eclipse (and you!) from creating files in the web root. This means that UAC will stop Eclipse from creating .project files.

You can turn off UAC by clicking on the 'Control Panel', and choosing 'User Accounts'. Then click 'Change User Account Control settings', by setting the notifications to 'None' it will turn it off.

TweetBacks
Comments (Comment Moderation is enabled. Your comment will not appear until approved.)
Michael Evangelista's Gravatar >> Look for the '.lock' file in your workspace and delete it.

this saved me some serious aggravation.
Tired of not being able to use the "default location" setting for new projects, i am attempting to use my CF local web root as the eclipse workspace location.

The .lock file was in
cfusion/wwwroot/.metadata/
deleting it allowed Eclipse to open that workspace again.

thanks!
# Posted By Michael Evangelista | 18/03/2012 17:25
Shaun McCran's Gravatar Hi Michael,

Great tip! Thanks for that, I haven't been experiencing the issue after finding that file. It was a weirdly intermittent issue, but its gone now :-)
# Posted By Shaun McCran | 20/03/2012 02:55
roof shingles's Gravatar Windows 7 User Acceptance Control will stop Eclipse (and you!) from creating files in the web root. This means that UAC will stop Eclipse from creating .project files.
# Posted By roof shingles | 14/10/2015 06:21
Personal Injury Solicitor's Gravatar Je moet van 1 van de personages zeggen waarom hij er niet 'bij hoort'. Maar daarna nog een keer maar dan van een ANDER personage!
# Posted By Personal Injury Solicitor | 17/10/2015 23:32
cab service jaipur to delhi's Gravatar but also very useful for the treatment, Ace maxs made from mangosteen peel and soursop leaves, Had a very remarkable properties.
# Posted By cab service jaipur to delhi | 26/11/2015 00:43
look what i found's Gravatar I was helping a friend setup a custom tag path on his server demonstrated this. He couldn't remember where the web root was to point ColdFusion server at his custom tags directory.
# Posted By look what i found | 13/12/2015 21:53
The Dangerous Side Effects of Xarelto's Gravatar I'm able to bookmark your site and show the kids check out up here generally. I m fairly positive there likely to be informed a great deal of new stuff here than anyone.
# Posted By The Dangerous Side Effects of Xarelto | 19/12/2015 02:13
nat vps's Gravatar You have done a great job on this article. It’s very readable and highly intelligent. You have even managed to make it
# Posted By nat vps | 19/12/2015 03:28
nat vps's Gravatar Eclipse (and you!) from creating files in the web root. This means that UAC will stop Eclipse from creating .project files.
# Posted By nat vps | 19/12/2015 03:32
Assistant Description's Gravatar Great Post This is also a very good post which I really enjoyed reading. It is not everyday that I have the possibility to see something like this..Thank You!
# Posted By Assistant Description | 21/12/2015 02:19
cheap research papers's Gravatar Firstly create a CurrencyFormatter object, and specify the currency symbol, and any other formatting parameters that you require.
# Posted By cheap research papers | 26/12/2015 02:13
check this out's Gravatar Good to become visiting your weblog again, it has been months for me. Nicely this article that i've been waited for so long.
# Posted By check this out | 28/12/2015 01:44
check this out's Gravatar Your site and show the kids check out up here generally. I m fairly positive there likely to be informed a great deal of new stuff here than anyone.
# Posted By check this out | 29/12/2015 00:27
movers and packers in pune's Gravatar it has been months for me. Nicely this article that i've been waited for so long.
# Posted By movers and packers in pune | 13/01/2016 23:07
DUI Lawyer's Gravatar I have feel that this blog is really have all those quality that qualify a blog to be a one.I wanted to leave a little comment to support you and wish you a good continuation.
# Posted By DUI Lawyer | 19/01/2016 23:55
ajmer sightseeing's Gravatar setting for new projects, i am attempting to use my CF local web root as the eclipse workspace location.
# Posted By ajmer sightseeing | 04/02/2016 02:20
Back to top