jmetr 安装异常

jmeter 新版本遇到了无法保存测试计划的bug

 

 

2021-04-01 20:21:58,371 ERROR o.a.j.JMeter: Uncaught exception in thread Thread[AWT-EventQueue-0,6,main]
java.lang.IllegalAccessError: class com.github.weisj.darklaf.ui.filechooser.DarkFilePaneUIBridge$DetailsTableModel (in unnamed module @0x667a738) cannot access class sun.awt.shell.ShellFolder (in module java.desktop) because module java.desktop does not export sun.awt.shell to unnamed module @0x667a738
 at com.github.weisj.darklaf.ui.filechooser.DarkFilePaneUIBridge$DetailsTableModel.updateColumnInfo(DarkFilePaneUIBridge.java:1128) ~[darklaf-core-2.5.4.jar:2.5.4]
 at com.github.weisj.darklaf.ui.filechooser.DarkFilePaneUIBridge$DetailsTableModel.<init>(DarkFilePaneUIBridge.java:1115) ~[darklaf-core-2.5.4.jar:2.5.4]
 at com.github.weisj.darklaf.ui.filechooser.DarkFilePaneUIBridge.getDetailsTableModel(DarkFilePaneUIBridge.java:576) ~[darklaf-core-2.5.4.jar:2.5.4]
 at com.github.weisj.darklaf.ui.filechooser.DarkFilePaneUIBridge$SortableListModel.<init>(DarkFilePaneUIBridge.java:1079) ~[darklaf-core-2.5.4.jar:2.5.4]
 at com.github.weisj.darklaf.ui.filechooser.DarkFilePane.createList(DarkFilePane.java:137) ~[darklaf-core-2.5.4.jar:2.5.4]
 at com.github.weisj.darklaf.ui.filechooser.DarkFileChooserUIBridge.createList(DarkFileChooserUIBridge.java:585) ~[darklaf-core-2.5.4.jar:2.5.4]
 at com.github.weisj.darklaf.ui.filechooser.DarkFileChooserUIBridge$MetalFileChooserUIAccessor.createList(DarkFileChooserUIBridge.java:750) ~[darklaf-core-2.5.4.jar:2.5.4]
 at com.github.weisj.darklaf.ui.filechooser.DarkFilePaneUIBridge.setViewType(DarkFilePaneUIBridge.java:376) ~[darklaf-core-2.5.4.jar:2.5.4]
 at com.github.weisj.darklaf.ui.filechooser.DarkFilePaneUIBridge.propertyChange(DarkFilePaneUIBridge.java:890) ~[darklaf-core-2.5.4.jar:2.5.4]
 at java.beans.PropertyChangeSupport.fire(PropertyChangeSupport.java:342) ~[?:?]
 at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:334) ~[?:?]
 at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:267) ~[?:?]
 at java.awt.Component.firePropertyChange(Component.java:8713) ~[?:?]
 at javax.swing.JComponent.setUI(JComponent.java:688) ~[?:?]
 at javax.swing.JFileChooser.updateUI(JFileChooser.java:1838) ~[?:?]
 at javax.swing.JFileChooser.setup(JFileChooser.java:395) ~[?:?]
 at javax.swing.JFileChooser.<init>(JFileChooser.java:361) ~[?:?]
 at javax.swing.JFileChooser.<init>(JFileChooser.java:308) ~[?:?]
 at org.apache.jmeter.gui.util.FileDialoger.<clinit>(FileDialoger.java:42) ~[ApacheJMeter_core.jar:5.4.1]
 at org.apache.jmeter.gui.action.Save.computeFileName(Save.java:201) ~[ApacheJMeter_core.jar:5.4.1]
 at org.apache.jmeter.gui.action.Save.doAction(Save.java:163) ~[ApacheJMeter_core.jar:5.4.1]
 at org.apache.jmeter.gui.action.ActionRouter.performAction(ActionRouter.java:87) ~[ApacheJMeter_core.jar:5.4.1]
 at org.apache.jmeter.gui.action.ActionRouter.lambda$actionPerformed$0(ActionRouter.java:69) ~[ApacheJMeter_core.jar:5.4.1]
 at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:316) ~[?:?]
 at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:770) ~[?:?]
 at java.awt.EventQueue$4.run(EventQueue.java:721) ~[?:?]
 at java.awt.EventQueue$4.run(EventQueue.java:715) ~[?:?]
 at java.security.AccessController.doPrivileged(AccessController.java:391) ~[?:?]
 at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85) ~[?:?]
 at java.awt.EventQueue.dispatchEvent(EventQueue.java:740) ~[?:?]
 at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203) [?:?]
 at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124) [?:?]
 at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113) [?:?]
 at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109) [?:?]
 at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101) [?:?]
 at java.awt.EventDispatchThread.run(EventDispatchThread.java:90) [?:?]

  

 

一直以为是我的mac m1的问题

后来去公司用macpro intel 更新jdk到jdk 16也发现了同样的问题,遂觉得使用jdk8

终于安装成功了!!!!

推荐使用jdk8

 

另--- 新版本mac 默认zsh 配置文件请修改~/.zshrc

 

jiaoyaxiong@192 ~ % cat ~/.zshrc 
export PYENV_ROOT="$HOME/.pyenv"
export PATH="$PYENV_ROOT/bin:$PATH"
if command -v pyenv 1>/dev/null 2>&1; then
 eval "$(pyenv init -)"
fi
export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_281.jdk/Contents/Home
CLASSPAHT=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
PATH=$JAVA_HOME/bin:$PATH:
export JMETER_HOME=/Users/jiaoyaxiong/Downloads/apache-jmeter-5.4.1
export PATH=$JAVA_HOME/bin:$PATH:.:$JMETER_HOME/bin:$PATH
export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar:$JMETER_HOME/lib/ext/ApacheJMeter_core.jar:$JMETER_HOME/lib/jorphan.jar:$JMETER_HOME/lib/logkit-2.0.jar

 

 

 

posted @ 2021-03-31 20:31  峡谷恶霸  阅读(1488)  评论(0编辑  收藏  举报