无法在Eclipse中保存项目首选项 [英] Can't save project preferences in Eclipse

查看:411
本文介绍了无法在Eclipse中保存项目首选项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所有我想要做的是将我的项目的Java编译器设置为5.0。默认值为1.4。当我尝试按OK按钮保存时,我收到以下错误。



首选项保存失败:



原因:
异常保存项目首选项时出现:
/com.myproj.reqmanager.ui/.settings/org.eclipse.jdt.ui.prefs。



我以前从来没有这个错误。我的意思是我以前导入了这个项目并保存了首选项设置,没有任何问题。无处不在我现在得到这个问题。

解决方案

如果你遵循这个线程,这可以是:



    $ b $因为使用Eclipse在网络驱动器上使用工作区(不一定是你的情况,而是值得一提,以防万一)
  • 因为文件被某种方式锁定另一个进程或版本控制系统,悲观锁定)。另请参阅错误130266




只读项目文件在处理源控制系统(如Perforce)时,会使本地文件为只读,直到它们被检出。



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.

解决方案

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".

这篇关于无法在Eclipse中保存项目首选项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆