A Class has been compiled by a more recent version of the Java Runtime

21 Views Asked by At

Good afternoon, when running a server with Ant, this is the error I get.

Exception in thread "main" java.lang.UnsupportedClassVersionError: es/deusto/ingenieria/sd05/easybooking/server/data/Airline 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 56.0

However, when typing javac -version, it says that I'm using the latest Java version (13). I tried to compile it with Java 13, 12 or 11, and none worked. Any ideas on how to fix it?

0

There are 0 best solutions below