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



















Copyright © Code2care 2024 | Privacy Policy | About Us | Contact Us | Sitemap