We Are Going To Discuss About java.lang.NoClassDefFoundError: Could not initialize class org.apache.jmeter.gui.util.MenuFactory. So lets Start this Java Article.
java.lang.NoClassDefFoundError: Could not initialize class org.apache.jmeter.gui.util.MenuFactory
- java.lang.NoClassDefFoundError: Could not initialize class org.apache.jmeter.gui.util.MenuFactory
Normally this happens when a Dependent jar is not present or in case if there is a conflicting jar with different implementation present.
- java.lang.NoClassDefFoundError: Could not initialize class org.apache.jmeter.gui.util.MenuFactory
Normally this happens when a Dependent jar is not present or in case if there is a conflicting jar with different implementation present.
Solution 1
I’ve got a similar issue. The solution was changing the theme!
Try the following:
- Open JMeter -> Options -> Look and Feel -> Select any other theme other than Darcula (E.g.
System
theme). - Restart JMeter.
Original Author Mohsenasm Of This Content
Solution 2
Facing that same issue on (macOS Big Sur, version – 11.2.3 & Jmeter version 5.4.1). I’m following this step “Open JMeter -> Options -> Look and Feel -> Select System” and its works
Original Author DEVSHK Of This Content
Solution 3
Normally this happens when a Dependent jar is not present or in case if there is a conflicting jar with different implementation present.
Check this post
https://newspaint.wordpress.com/2013/08/21/jmeter-could-not-initialize-menufactory-class/
Original Author Kaushik Patel Of This Content
Solution 4
I was not able to open any file. Ctrl + O was showing same error. Problem is solve by changing theme.
Original Author Shekhar Tyagi Of This Content
Conclusion
So This is all About This Tutorial. Hope This Tutorial Helped You. Thank You.