Groovy Shell 警告“无法打开/创建首选项根节点..." [英] Groovy Shell warning "Could not open/create prefs root node ..."

查看:19
本文介绍了Groovy Shell 警告“无法打开/创建首选项根节点..."的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试在 Windows 8 上打开 Groovy Shell (groovysh) 并得到以下输出:

I tried to open the Groovy Shell (groovysh) on Windows 8 and got the following output:

java.util.prefs.WindowsPreferences <init>
WARNING: Could not open/create prefs root node SoftwareJavaSoftPrefs 
at root 0x80000002. Windows RegCreateKeyEx(...) returned error code 5.

打印上述消息后,shell 按预期启动.

After printing the above message the shell started as expected.

推荐答案

Dennis 的回答是正确的.但是我想以更详细的方式解释解决方案(对于 Windows 用户):

Dennis answer is correct. However I would like to explain the solution in a bit more detailed way (for Windows User):

  1. 进入开始"菜单并在搜索字段中输入 regedit.
  2. 导航到路径 HKEY_LOCAL_MACHINESoftwareJavaSoft(Windows 10 现在似乎有这个:HKEY_LOCAL_MACHINESoftwareWOW6432NodeJavaSoft)
  3. 右键单击 JavaSoft 文件夹,然后单击 New -> Key
  4. 为新 Key Prefs 命名,一切都会正常.
  1. Go into your Start Menu and type regedit into the search field.
  2. Navigate to path HKEY_LOCAL_MACHINESoftwareJavaSoft (Windows 10 seems to now have this here: HKEY_LOCAL_MACHINESoftwareWOW6432NodeJavaSoft)
  3. Right click on the JavaSoft folder and click on New -> Key
  4. Name the new Key Prefs and everything should work.

或者,保存并执行具有以下内容的 *.reg 文件:

Alternatively, save and execute a *.reg file with the following content:

Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINESoftwareJavaSoftPrefs]

这篇关于Groovy Shell 警告“无法打开/创建首选项根节点..."的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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