(it was causing crashes in Amber and Pasta )
this is how to fix- >
WARNING: Could not open/create prefs root node Software\JavaSoft\Prefs
at root 0x80000002. Windows RegCreateKeyEx(...) returned error code 5.
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.
good luck and have fun !