问题描述
所有我想要做的是将我的项目的Java编译器设置为5.0。默认值为1.4。当我尝试按OK按钮保存时,我收到以下错误。
首选项保存失败:
原因:
异常保存项目首选项时出现:
/com.myproj.reqmanager.ui/.settings/org.eclipse.jdt.ui.prefs。
我以前从来没有这个错误。我的意思是我以前导入了这个项目并保存了首选项设置,没有任何问题。无处不在我现在得到这个问题。
如果你遵循,这可以是:
- $ b $因为使用Eclipse在网络驱动器上使用工作区(不一定是你的情况,而是值得一提,以防万一)
- 因为文件被某种方式锁定另一个进程或版本控制系统,悲观锁定)。另请参阅:
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:
这篇关于无法在Eclipse中保存项目首选项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!