Recommended solutions based on your search
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
java.lang.UnsupportedClassVersionError: testpgm1 (Uns
upported major.minor version 50.0)
at java.lang.ClassLoader.defineClass0(Native Method)