AI智能
改变未来

关于JMeter启动报错“sun.awt.shell.Win32ShellFolderManager2 get WARNING: Cannot read value =…”的解决方案

Jul 28, 2020 8:24:24 AM sun.awt.shell.Win32ShellFolderManager2 get
WARNING: Cannot read value = ::{20D04FE0-3AEA-1069-A2D8-08002B30309D}::{5FCD4425-CA3A-48F4-A57C-B8A75C32ACB1}
java.io.FileNotFoundException: File D:\\apache-jmeter-5.1.1\\bin::{20D04FE0-3AEA-1069-A2D8-08002B30309D}::{5FCD4425-CA3A-48F4-A57C-B8A75C32ACB1} not found
at sun.awt.shell.Win32ShellFolderManager2.createShellFolder(Unknown Source)
at sun.awt.shell.Win32ShellFolderManager2.createShellFolder(Unknown Source)
at sun.awt.shell.Win32ShellFolderManager2.get(Unknown Source)
at sun.awt.shell.ShellFolder.get(Unknown Source)
at sun.swing.WindowsPlacesBar.(Unknown Source)
at com.sun.java.swing.plaf.windows.WindowsFileChooserUI.updateUseShellFolder(Unknown Source)
at com.sun.java.swing.plaf.windows.WindowsFileChooserUI.installComponents(Unknown Source)
at javax.swing.plaf.basic.BasicFileChooserUI.installUI(Unknown Source)
at com.sun.java.swing.plaf.windows.WindowsFileChooserUI.installUI(Unknown Source)
at javax.swing.JComponent.setUI(Unknown Source)
at javax.swing.JFileChooser.updateUI(Unknown Source)
at javax.swing.JFileChooser.setup(Unknown Source)
at javax.swing.JFileChooser.(Unknown Source)
at javax.swing.JFileChooser.(Unknown Source)

先说一下问题情况:
jmeter本来用着好好的,某天一启动Jmeter就开始报以上操作。
想想距离上次正常启动期间的操作,有相关关系的好像就是升级了一个Java,类似图下这样的系统提示:

误点之后就自动安装更新了。

想到可能与这次更新有关,于是去环境变量查看JAVA_HOME中配置的jdk路径,根据jdk路径找到了jdk所在目录。果不其然目录下jdk和jre不是一个版本。
于是去cmd命令行查看java -version,发现当前java更新自动升级了jre,导致jdk与jre版本不一致。

解决方案:
1.清除环境变量中关于jdk的配置;
2.卸载jdk,清除注册表数据,步骤网上都有,不在详述;
3.重新安装jdk;
4.重新配置jdk环境变量:JAVA_HOME 、PATH、CLASSPATH;
至此,启动jmeter,不在报错,问题解决。

赞(0) 打赏
未经允许不得转载:爱站程序员基地 » 关于JMeter启动报错“sun.awt.shell.Win32ShellFolderManager2 get WARNING: Cannot read value =…”的解决方案