Reputation: 115
I am trying to run a very simple test in Jenkins using JMeter.
JMeter Version 2.13 & Running Jenkins Locally and JMeter is also stored locally.
Executing in Jenkins using windows batch command.
when running the job in Jenkins i get the following error message in Console Output:
Uncaught Exception java.lang.ExceptionInInitializerError. See log file for details. Uncaught Exception java.lang.NoClassDefFoundError: Could not initialise class org.apache.jmeter.gui.util.MenuFactory. See log file for details.
I went to manage Jenkins and system logs but no information in there.
Any ideas?
Upvotes: 1
Views: 1615
Reputation: 314
As it is java related exception, please check your jdk settings in jenkins by follwing below steps
Please take free style project in jenkins and configure as in below images
In the place of directory under custom work space give the path of bin folder of jmeter
In the place of Test.jmx give your jmx file name
When you build the project you can see the console output as below image
Upvotes: 1