JMeter Producing Error: Windows RegCreateKeyEx(...) returned error code 5

After running JMeter.bat on Command Line,

Problem
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.
Cause
Environment
Resolving the problem
The error occurs because java.util.prefs.WindowsPreferences is trying to save information in HKEY_LOCAL_MACHINE\Software\JavaSoft\Prefs instead of under HKEY_CURRENT_USER\Software\JavaSoft\Prefs.
Windows 7 64-bit
The work around is to Open JMeter.bat file as the administrator and so it creates the key HKEY_LOCAL_MACHINE\Software\JavaSoft\Prefs.

This entry was posted in . Bookmark the permalink.

1 Response to JMeter Producing Error: Windows RegCreateKeyEx(...) returned error code 5

  1. aalia lyon says:

    Nice to see this blog Its really Awesome blog clik this link and make your windows 7 error free.

    error 1068
    windows7


    Thank you

    Aalia lyon

Leave a Reply