jmeter Uncaught Exception java.lang.IllegalAccessError: class com.github.weisj.darklaf.ui.filechooser....報錯


使用Jmter提示錯誤

Uncaught Exception java.lang.IllegalAccessError: class com.github.weisj.darklaf.ui.filechooser.DarkFilePaneUIBridge$DetailsTableModel (in unnamed module @0xf2f2cc1) cannot access class sun.awt.shell.ShellFolder (in module java.desktop) because module java.desktop does not export sun.awt.shell to unnamed module @0xf2f2cc1 in thread Thread[AWT-EventQueue-0,6,main]. See log file for details.

因為使用了java jdk 15 以上的版本,解決辦法如下:

在jmter.bat 中添加:

--add-opens=java.desktop/sun.awt.shell=ALL-UNNAMED

image


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM