java.lang.NoClassDefFoundError: Could not initialize class org.apache.jmeter.gui.util.MenuFactory

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

  1. 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.

  2. 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:

  1. Open JMeter -> Options -> Look and Feel -> Select any other theme other than Darcula (E.g. System theme).
  2. Restart JMeter.

source: https://www.javaer101.com/en/article/5555703.html

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

enter image description here

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.

Also Read,

Siddharth

I am an Information Technology Engineer. I have Completed my MCA And I have 4 Year Plus Experience, I am a web developer with knowledge of multiple back-end platforms Like PHP, Node.js, Python and frontend JavaScript frameworks Like Angular, React, and Vue.

Leave a Comment