java.lang.UnsupportedClassVersionError: org/testng/TestNG : Unsupported major.minor version 51.0

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

,
via GitHub by Athou

You're using an older version of java with classes compiled for java7

,
via Google Groups by Marcus Haebler

Update "latest" to Java 8 on DockerHub.

Solutions on the web

via Stack Overflow by KjetilNordin
, 1 year ago
via Stack Overflow by blagae
, 2 years ago
org/testng/TestNG : Unsupported major.minor version 51.0
via Stack Overflow by user1053540
, 2 years ago
org/testng/remote/RemoteTestNG : Unsupported major.minor version 51.0
via GitHub by GoogleCodeExporter
, 1 year ago
org/jmc/Main : Unsupported major.minor version 51.0
via Stack Overflow by nozomi
, 10 months ago
via GitHub by GoogleCodeExporter
, 11 months ago
org/jmc/Main : Unsupported major.minor version 51.0
java.lang.UnsupportedClassVersionError: org/testng/TestNG : Unsupported major.minor version 51.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(Unknown Source)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$000(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)

Users with the same issue

11 times, 1 day ago
2 times, 3 days ago
Once, 3 weeks ago
Once, 1 month ago
9 times, 2 months ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.