【JMeter】启动时报错Uncaught Exception java.lang.IllegalAccessError
作者:互联网
启动JMeter时,报错信息:
Uncaught Exception java.lang.IllegalAccessError: class com.github.weisj.darklaf.ui.filechooser.DarkFilePaneUIBridge$DetailsTableModel (in unnamed module @0x15761df8) cannot access class sun.awt.shell.ShellFolder (in module java.desktop) because module java.desktop does not export sun.awt.shell to unnamed module @0x15761df8 in thread Thread[AWT-EventQueue-0,6,main]. See log file for details.
解决方法:
因为使用了java jdk 15 以上的版本:打开jmeter.bat文件,在大概112行位置添加:
--add-opens=java.desktop/sun.awt.shell=ALL-UNNAMED
标签:lang,Exception,shell,java,sun,awt,module,desktop 来源: https://www.cnblogs.com/pearl07/p/16228203.html