【问题标题】:Unable to save store preferences in Eclipse (Using wrong Directory?)无法在 Eclipse 中保存存储首选项(使用错误的目录?)
【发布时间】:2022-10-05 08:41:27
【问题描述】:

最近我的快捷键停止工作。每当我尝试在 Window -> Preferences -> Keys 中更改它们并保存时,我都会收到此错误:

'Store preferences' has encountered a problem.
AN internal error occurred during: "Store preferences"
Details:
An internal error occurred during: "Store preferences".
java.io.FileNotFoundException: C:\Users\bestg\eclipse-workspace\.metadata\.plugins\org.eclipse.oomph.setup\workspace.setup (The system cannot find the path specified)

但是,此路径不是正确的路径,这是我在这台 PC 上的另一个 Windows 安装上的另一个路径(不是不同的用户,不同的驱动器/操作系统)。路径应该是C:\Users\brick\eclipse-workspace\.metadata\

我尝试在创建“C:\Users\bestg”的文件夹中创建指向正确区域的快捷方式,但这不起作用。我还尝试过在 eclipse 中切换工作区和通过 eclipse.ini 手动设置工作区:

-Dosgi.instance.area.default="C:\Users\brick\eclipse-workspace"

和 config.ini

osgi.instance.area.default="C:\Users\brick\eclipse-workspace"

但是,当我尝试保存我的快捷方式并且无法使用我的快捷方式时,我仍然收到此错误

【问题讨论】:

    标签: eclipse


    【解决方案1】:

    每当我将工作区迁移到新计算机时,我在使用 Eclipse 的 Mac 计算机上多次遇到此问题。 问题在于 Oomph Preference Recorder 试图将首选项记录到不存在的目录中。 对我有用的解决方案是进入 Eclipse Preferences -> Oomph -> Setup Tasks -> Preference Recorder,然后将“Record into”字段设置为您要在计算机上存储首选项的任何位置。对我来说,它具有 Eclipse 安装目录或我当前工作空间的自动填充选项。 进行此更改后,保存首选项应重新开始工作。

    【讨论】:

      猜你喜欢
      • 2010-10-31
      • 2013-06-30
      • 1970-01-01
      • 1970-01-01
      • 2018-11-27
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-12-28
      相关资源
      最近更新 更多