Error: LinkageError occurred while loading main class UnsupportedClassVersionError [Eclipse Java]

Java LinkageError UnsupportedClassVersionError
Java LinkageError UnsupportedClassVersionError

Error: LinkageError occurred while loading main class package.MyClass

java.lang.UnsupportedClassVersionError: package.MyClass
has been compiled by a more recent version of the Java Runtime (class file version 57.0), this version of the Java Runtime only recognizes class file versions up to 55.0

If you tried to compile and execute your Java class in Eclipse and got the above error message then it's due to the mismatch of your installed Java Runtime (JRE) and Complication version. Example: make sure that if you are using Java 8 then you can only compile with Java 8 or below. If you go higher say Java 13 you get this error UnsupportedClassVersionError

Recent Posts:

Code2care is an initiative to publish and share varied knowledge in programming and technical areas gathered during day-to-day learnings and development activities.

Students and Software Developers can leverage this portal to find solutions to their various queries without re-inventing the wheel by referring to our easy to understand posts. Technical posts might include Learnings, Video Tutorials, Code Snippets, How Tos, Blogs, Articles, etc.