2

I open JMeter and I see the following error in the logs:

jmeter.gui.util.MenuFactory: Could not instantiate com.atlantbh.jmeter.plugins.xmlformatter.gui.XMLFormatPostProcessorGui java.lang.UnsupportedClassVersionError: kg/apc/jmeter/JMeterPluginsUtils : Unsupported major.minor version 51.0

I have java version 1.6.0_45 installed on my machine, my PATH and JAVA_HOME environment variables contain the path to JDK 1.6, because of this issue I'm unable to open any .jmx files as the open option is disabled in JMeter, how can I resolve this?

Ori Marko
  • 56,308
  • 23
  • 131
  • 233
  • Java 6 ended public updates Apr 2013 and Java 7 finished Apr 2015. Java 8 will stop having public releases for commercial use in Jan 2019. I would think about how you can migrate to Java 11. – Peter Lawrey Sep 21 '18 at 09:09

2 Answers2

4

As part of JMeter 3.0 changes it requires java 7

Bug 57981 - Require a minimum of Java 7.

Since JMeter 3.2 - Java 8:

JMeter now requires Java 8.

Consider upgrade to Java 8 and latest JMeter 5.0

If you can't upgrade Java, you will need to work with JMeter 2.9 which isn't a recommended solution.

Ori Marko
  • 56,308
  • 23
  • 131
  • 233
1

That major.minor version issue means that you are trying to run your code on an older version of Java compared to the one it was compiled with.

If you check this link, you'll see that that code has been compiled with Java 7, meaning the build is probably not compatible with your JRE.

I would recommend you to update to Java 7

Stultuske
  • 9,296
  • 1
  • 25
  • 37