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.
After printing the above message the shell started as expected.
Best Answer
Dennis answer is correct. However I would like to explain the solution in a bit more detailed way (for Windows User):
regedit
into the search field.HKEY_LOCAL_MACHINE\Software\JavaSoft
(Windows 10 seems to now have this here:HKEY_LOCAL_MACHINE\Software\WOW6432Node\JavaSoft
)New
->Key
Prefs
and everything should work.Alternatively, save and execute a
*.reg
file with the following content: