I installed apache-jmeter-5.1.1 and java 1.8.0_221 (8), and was walking through the getting started guide to build a web test plan in the GUI. But when I click save to save the Test Plan I receive the below error:
Uncaught Exception java.lang.NoClassDefFoundError: Could not initialize class org.apache.jmeter.gui.util.FileDialoger. See log file for details.
Full Output in debugger:
2019-07-24 15:30:13,306 ERROR o.a.j.JMeter: Uncaught exception:
java.lang.NoClassDefFoundError: Could not initialize class org.apache.jmeter.gui.util.FileDialoger
at org.apache.jmeter.gui.action.Save.computeFileName(Save.java:203) ~[ApacheJMeter_core.jar:5.1.1 r1855137]
at org.apache.jmeter.gui.action.Save.doAction(Save.java:165) ~[ApacheJMeter_core.jar:5.1.1 r1855137]
at org.apache.jmeter.gui.action.ActionRouter.performAction(ActionRouter.java:88) ~[ApacheJMeter_core.jar:5.1.1 r1855137]
at org.apache.jmeter.gui.action.ActionRouter.lambda$actionPerformed$0(ActionRouter.java:70) ~[ApacheJMeter_core.jar:5.1.1 r1855137]
at java.awt.event.InvocationEvent.dispatch(Unknown Source) ~[?:1.8.0_221]
at java.awt.EventQueue.dispatchEventImpl(Unknown Source) ~[?:1.8.0_221]
at java.awt.EventQueue.access$500(Unknown Source) ~[?:1.8.0_221]
at java.awt.EventQueue$3.run(Unknown Source) ~[?:1.8.0_221]
at java.awt.EventQueue$3.run(Unknown Source) ~[?:1.8.0_221]
at java.security.AccessController.doPrivileged(Native Method) ~[?:1.8.0_221]
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source) ~[?:1.8.0_221]
at java.awt.EventQueue.dispatchEvent(Unknown Source) ~[?:1.8.0_221]
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) [?:1.8.0_221]
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) [?:1.8.0_221]
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) [?:1.8.0_221]
at java.awt.EventDispatchThread.pumpEvents(Unknown Source) [?:1.8.0_221]
at java.awt.EventDispatchThread.pumpEvents(Unknown Source) [?:1.8.0_221]
at java.awt.EventDispatchThread.run(Unknown Source) [?:1.8.0_221]
Any idea how to resolve?
Most probably you're suffering from JMeter Bug 65300 so the options are in: Downgrade to Java 8. Try out Nightly Build of JMeter.
To save the Test Plan, select "Save" or "Save Test Plan As …" from the File menu (with the latest release, it is no longer necessary to select the Test Plan element first). JMeter allows you to save the entire Test Plan tree or only a portion of it.
Within the Apache JMeter application, save your JMeter test plan (File > Save) to a JMX file on a local computer. Next, log in to your LoadView account and click New Test on the Test Manager page . On the Select a Load Testing Type page, pick the JMeter test type.
1.1.JMeter is compatible with Java 8 or higher.
Try the following:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With