views:

275

answers:

1

All I am trying to do is to set the Java compiler for my project as 5.0. It is 1.4 by default. When I try to save by pressing OK button I get the following error.

Preferences Save Failed:

Reason: Exception Occured while saving project preferences: /com.myproj.reqmanager.ui/.settings/org.eclipse.jdt.ui.prefs.

I never got this error earlier. I mean I have imported this project before and saved preference settings without any problem. Out of nowhere I am getting this problem now.

+1  A: 

If you follow this thread, this can be:

  • because of the use of Eclipse with a workspace on a network drive (not necessarily your case, but worth mentioning just in case)
  • because the file is somehow locked (either by another process or by a Version Control System with pessimistic locking). See also bug 130266:

Read-only project files come up a lot when dealing with source control systems (like Perforce) that make the local files read-only until they are "checked out".

VonC
Hey, thanks VonC. I had checked this and neither was applicable to me. However, I created a new workspace and continued my work. That was much faster. But, for the interest of it I will go back to my old workspace and try to get to the root of it.
Chandan .
@RCB thank you for this feedback. I f you do find the root cause, you could post it here as an answer (that I would upvote ;) ), and even select your own post as the official answer (no reputation gain involved here though)
VonC