Java JMeter 以警告消息开头

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/20698493/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-13 03:39:06  来源:igfitidea点击:

JMeter starts with warning message

javajmeterstartup-error

提问by Ayusman

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.

我在我的 Windows 8 机器上设置了 JMeter。当我启动 JMeter 时,它启动正常,但留下一条警告消息,我不明白为什么。

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?

有没有人知道可能是什么问题?我确实检查了注册表信息 HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft,但在那里没有看到“Prefs”文件夹。但是我应该在那里创建一个注册表项吗?

System Information:

系统信息:

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

Thanks.

谢谢。

采纳答案by Ayusman

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.

正如@michali 在评论中提到的那样。以管理员身份登录后在 Windows 注册表编辑器"Prefs"下创建一个新项"HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft"确实解决了问题。但是 JMeter 不会在此密钥下创建或写入任何内容。不知道为什么。

回答by hesus

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

当我没有以管理员身份运行 jmeter.bat 时,我遇到了同样的问题。

回答by san1deep2set3hi

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

要解决此问题,请以管理员身份运行 jmeter.bat 一次。之后,jmeter 可以作为普通用户打开而没有此消息。

回答by bsd007

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.

我有类似的问题。在命令提示符中键入“where java”。检查您的环境变量中是否有多个 java。如果是,请删除重复项。你不会看到错误。否则,您可以如上所述以管理员身份运行。