Unable to save project settings in Eclipse

All I am trying to do is install the Java compiler for my project as 5.0. The default is 1.4. When I try to save by clicking OK, I get the following error.

Saving saved settings:

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

I have never received this error before. I mean, I imported this project before and saved the preference settings without any problems. Out of nowhere, I get this problem now.

+7
eclipse ide settings
source share
5 answers

If you follow this thread , it could be:

  • due to the use of Eclipse with 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 error 130266 :

Read-only project files come to a large extent when working with version control systems (such as Perforce) that make local files read-only until they are β€œchecked”.

+5
source share

Like Liam, I save my project to Dropbox and use it on two different machines, and also get the same error. A simple update (select the project and press F5, or right-click on the project and select "Update") helped because the resource was not synchronized. Usually this is displayed (for example, in the editor when trying to edit the source file), but in case of settings, you will need to find this message in the eclipse log:

!MESSAGE Exception occurred while saving project preferences: /Utils/.settings/org.eclipse.jdt.core.prefs. !STACK 1 org.eclipse.core.internal.resources.ResourceException: Resource is out of sync with the file system: '/Utils/.settings/org.eclipse.jdt.core.prefs'. 

This can be a problem for both of you, because any external modification of the project will cause this error during synchronization, and creating a new workspace or using a different version of eclipse will probably clear the eclipse cache, which will lead to an automatic update.

+5
source share

Five years later, and this is still happening. In my case, I moved the .settings folder saved again ( .settings is created automatically) and merged the files manually.

Occurs in Android Developer Tools Build: v22.6.2.

+4
source share

I also had this problem. I used two versions of eclipse, one on my home machine (juno) and one on my working machine (indigo). Both shared the same folder using the Dropbox folder. Everything worked fine, until I wanted to make some changes in the style of the editor, the settings would not be saved.

The solution in my case was to upgrade the indigo version to juno on my working machine.

+1
source share

Check the project Properties β†’ Java Compiler and make sure that the < level of the compiler level is 1.8 or 1.7 instead of 1.4.

If this still does not remove the error, deleting the .settings folder will certainly work.

0
source share

All Articles