蓝色的天_90  

保存时cmd中的报错信息,如下2种:
Uncaught Exception java.lang.IllegalAccessError: class com.github.weisj.darklaf.ui.filechooser.DarkFilePaneUIBridge$DetailsTableModel (in unnamed module @0xd83da2e) cannot access class sun.awt.shell.ShellFolder (in module java.desktop) because module java.desktop does not export sun.awt.shell to unnamed module @0xd83da2e in thread Thread[AWT-EventQueue-0,6,main]. See log file for details.

Uncaught Exception java.lang.NoClassDefFoundError: Could not initialize class org.apache.jmeter.gui.util.FileDialoger in thread Thread[AWT-EventQueue-0,6,main]. See log file for details


2、修改jmeter 配置文件

解决方法

如图找到jmeter.bat 或  jmeter.sh文件,用记事本打开大约110行左右的位置,添加红框内容,即:--add-opens java.desktop/sun.awt.shell=ALL-UNNAMED 即可解决。

重启jmeter 即可

posted on 2023-12-01 15:17  蓝色的天_90  阅读(447)  评论(0编辑  收藏  举报