Class has been compiled by a more recent version of the Java Environment (class file version 61.0),
this version of the Java Runtime only recognizes class file versions up to 55.0.
É quando compilamos com Java 17 (class file version 61.0) e tentamos executar com Java 11 (class file version 55.0).
Como saber esses números?
Java version | Release date | End Of Support Life | Java class file version |
---|---|---|---|
Java SE 21 👑 | September 2023 | 🟢 September 2031 | 65 |
Java SE 20 | 21st March 2023 | 🔴 September 2023 | 64 |
Java SE 19 | 20th September 2022 | 🔴 March 2023 | 63 |
Java SE 18 | 22nd March 2022 | 🔴 September 2022 | 62 |
Java SE 17 👑 | 14th September 2021 | 🟢 September 2029 | 61 |
Java SE 16 | 16th March 2021 | 🔴 September 2021 | 60 |
Java SE 15 | 16th September 2020 | 🔴 March 2021 | 59 |
Java SE 14 | 17th March 2020 | 🔴 September 2020 | 58 |
Java SE 13 | 17th September 2019 | 🔴 March 2020 | 57 |
Java SE 12 | 19th March 2019 | 🔴 September 2019 | 56 |
Java SE 11 👑 | 25th September 2018 | 🟢 September 2026 | 55 |
Java SE 10 | 20th March 2018 | 🔴 September 2018 | 54 |
Java SE 9 | 21st September 2017 | 🔴 March 2018 | 53 |
Java SE 8 👑 | 18th March 2014 | 🟢 December 2030 | 52 |
Java SE 7 | 28th July 2011 | 🔴 July 2022 | 51 |
Java SE 6.0 | 11th December 2006 | 🔴 December 2018 | 50 |
Java SE 5.0 | 29th September 2004 | 🔴 July 2015 | 49 |
JDK 1.4 | 13th February 2002 | 🔴 March 2013 | 48 |
JDK 1.3 | 8th May 2000 | 🔴 April 2011 | 47 |
JDK 1.2 | 4th December 1998 | 🔴 December 2003 | 46 |
JDK 1.1 | 2nd February 1997 | 🔴 October 2002 | 45.3 |
JDK 1.0 | 23rd January 1996 | 🔴 May 1996 | 45 |
https://www.java.com/releases/
https://en.wikipedia.org/wiki/Java_class_file#General_layout
https://docs.oracle.com/javase/specs/jvms/se19/html/jvms-4.html#jvms-4.1-200-B.2