java.lang.UnsupportedClassVersionError: testpgm1 (Uns upported major.minor version 50.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 Stack Overflow by ERJAN

This exception occurs when using an older version of java. Mainly when trying to run a jar compiled with a newer Java version in an older Java version. We can avoid this issue by executing the jar in the same version which it was compiled.

Solutions on the web

via Coderanch by ananya sa, 1 year ago
testpgm1 (Uns upported major.minor version 50.0)
via Google Groups by wilk, 1 month ago
test (Uns rted major.minor version 49.0)
via javaprogrammingforums.com by Unknown author, 2 years ago
TicTacToe (Unsupported major.minor version 50.0)
via Coderanch by Parveen Dalal, 1 year ago
Xy ted major.minor version 50.0)
via java-forums.org by Unknown author, 2 years ago
via knowcoding.com by Unknown author, 2 years ago
HashMapTest (Unsupported major.minor version 49.0)
java.lang.UnsupportedClassVersionError: testpgm1 (Uns upported major.minor version 50.0)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:539)

Users with the same issue

Once, 1 week ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
14 more bugmates

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