Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

JMeter starts with warning message

I have JMeter set-up on my Windows 8 machine. When I startup JMeter it starts fine but leaves a warning message that I could not understand why.

Here is the log that I see in the command prompt:

C:\Users\Ayusman>jmeter
Dec 20, 2013 12:52:57 PM 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.

Is any body aware what could be the issue? I did check the registry information HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft and I do not see a "Prefs" folder in there. But am I supposed to create a registry entry there?

System Information:

Windows 8, 32 bit.
JMeter Version: 2.10
Java Version: 1.7.0_25

Thanks.

like image 802
Ayusman Avatar asked Dec 20 '13 07:12

Ayusman


4 Answers

To resolve this issue, run jmeter.bat as Administrator once. After that jmeter can be opened as normal user without this message.

like image 93
san1deep2set3hi Avatar answered Nov 12 '22 22:11

san1deep2set3hi


I had the same problem when I didn't run jmeter.bat as administrator.

like image 44
hesus Avatar answered Nov 12 '22 20:11

hesus


As @michali mentioned in the comment. Creating a new key "Prefs" under "HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft" in Windows registry editor after logging in as administrator did solve the problem. However JMeter does not create or write anything under this key. Not sure why.

like image 3
Ayusman Avatar answered Nov 12 '22 22:11

Ayusman


I had similar issues. Type "where java" in command prompt. Check if, you have more than one java in your environmental variable. If yes, delete the duplicate. You you wont see the error. Otherwise you can run as administrator as mentioned above.

like image 1
bsd007 Avatar answered Nov 12 '22 21:11

bsd007