简体   繁体   中英

JMeter - Unsupported major.minor version 51.0

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?

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.

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM