java Windows RegCreateKeyEx(...) returned error code 5.

来源:互联网 发布:手机淘宝 二维 淘宝店 编辑:程序博客网 时间:2024/04/30 02:28

Question:

java.util.prefs.WindowsPreferences
WARNING: Could not open/create prefs root node Software\JavaSoft\Prefs
at root 0x80000002. Windows RegCreateKeyEx(…) returned error code 5.

Solution:

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

  1. Go into your Start Menu and type regedit into the search field.
  2. Navigate to path HKEY_LOCAL_MACHINE\Software\JavaSoft (Windows 10 seems to now have this here: HKEY_LOCAL_MACHINE\Software\WOW6432Node\JavaSoft)
  3. Right click on the JavaSoft folder and click on New -> Key
  4. Name the new Key Prefs and everything should work.

Alternatively, save and execute a *.reg file with the following content:
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\Software\JavaSoft\Prefs]

You can find the solution from :
https://stackoverflow.com/questions/16428098/groovy-shell-warning-could-not-open-create-prefs-root-node

阅读全文
0 0
原创粉丝点击