0

I built a jar file from my Java code in IntelliJ, but when I want to run the JARfile as below:

java -jar /PATH/class.jar

I recieve this error:

Error: LinkageError occurred while loading main class Mesh java.lang.UnsupportedClassVersionError: Mesh has been compiled by a more recent version of the Java Runtime (class file version 61.0), this version of the Java Runtime only recognizes class file versions up to 60.0

How can I fix it?

Mark Rotteveel
  • 90,369
  • 161
  • 124
  • 175
  • This should resolve your problem: https://stackoverflow.com/questions/10382929/how-to-fix-java-lang-unsupportedclassversionerror-unsupported-major-minor-versi – Mirek Pluta Nov 26 '21 at 18:29

0 Answers0