Groovy Shell警告“无法打开/创建首选项根节点...” [英] Groovy Shell warning "Could not open/create prefs root node ..."
本文介绍了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 Software\JavaSoft\Prefs
at root 0x80000002. Windows RegCreateKeyEx(...) returned error code 5.
打印上面的消息后,shell开始预计。
After printing the above message the shell started as expected.
推荐答案
丹尼斯的回答是正确的。不过,我想以更详细的方式解释解决方案(对于Windows用户):
Dennis answer is correct. However I would like to explain the solution in a bit more detailled way (for Windows User):
- 进入开始菜单并键入
regedit
到搜索字段中。
- 导航到路径
HKEY_LOCAL_MACHINE \Software\JavaSoft $ c $ (Windows 10似乎现在有这个:
HKEY_LOCAL_MACHINE \Software\WOW6432Node\JavaSoft
)
- 右键单击JavaSoft文件夹并单击
新
- >键
- 密钥
Prefs
,一切都应该起作用。
- 导航到路径
- Go into your Start Menu and type
regedit
into the search field. - Navigate to path
HKEY_LOCAL_MACHINE\Software\JavaSoft
(Windows 10 seems to now have this here:HKEY_LOCAL_MACHINE\Software\WOW6432Node\JavaSoft
) - Right click on the JavaSoft folder and click on
New
->Key
- 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_MACHINE\Software\JavaSoft\Prefs]
这篇关于Groovy Shell警告“无法打开/创建首选项根节点...”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文