Java Version

95 views
Skip to first unread message

Paulo Dias

unread,
Dec 7, 2024, 3:29:51 PM12/7/24
to H2 Database
Exception in thread "main" java.lang.UnsupportedClassVersionError: org/h2/tools/Console has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0


how can i solve this?



Evgenij Ryazanov

unread,
Dec 7, 2024, 9:48:22 PM12/7/24
to H2 Database
Hello!

Modern versions of H2 (2.3.*) require Java 11 or any later version.

If you can't use these versions of Java, the only solution is to use some outdated version of H2.

Christian Buchegger

unread,
Dec 10, 2024, 12:18:59 AM12/10/24
to h2-da...@googlegroups.com

Use at least Java 11.
Looks you are still using Java 8

https://javaalmanac.io/bytecode/versions/



Paulo Dias <paulo.he...@gmail.com> schrieb am Sa., 7. Dez. 2024, 21:29:
Exception in thread "main" java.lang.UnsupportedClassVersionError: org/h2/tools/Console has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0


how can i solve this?



--
You received this message because you are subscribed to the Google Groups "H2 Database" group.
To unsubscribe from this group and stop receiving emails from it, send an email to h2-database...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/h2-database/0287f1d2-9762-4091-9a4e-05dd53f13d37n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages