Public bug reported: Hi,
After a new Ubuntu 22.04 install, we have installed the openjdk8 and tomcat9 packages: sudo apt install openjdk-8-jdk sudo apt install tomcat9 After the install we have tested it by deploying the sample application, from https://tomcat.apache.org/tomcat-9.0-doc/appdev/sample/ The Sample contains a simple JSP page, which throws an error: Message java.lang.UnsupportedClassVersionError: org/eclipse/jdt/internal/compiler/env/INameEnvironment 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 This class is in the libeclipse-jdt-core-java package, which seems to be compiled using Java 11 target settings. Tomcat 9 is officially supported on JDK 8, so I think the libeclipse- jdt-core-java package should also support Java 8. Also we could find a workaround: installing the libecj-java package (which supports Java 8) and creating a symlink in the tomcat9 lib directory. Thanks, Zoltan System Info: Description: Ubuntu 22.04 LTS Release: 22.04 tomcat9: Installed: 9.0.58-1 Candidate: 9.0.58-1 Version table: *** 9.0.58-1 500 500 http://hu.archive.ubuntu.com/ubuntu jammy/universe amd64 Packages 100 /var/lib/dpkg/status openjdk-8-jdk: Installed: 8u312-b07-0ubuntu1 Candidate: 8u312-b07-0ubuntu1 Version table: *** 8u312-b07-0ubuntu1 500 500 http://hu.archive.ubuntu.com/ubuntu jammy/universe amd64 Packages 100 /var/lib/dpkg/status libeclipse-jdt-core-java: Installed: 3.27.0+eclipse4.21-1 Candidate: 3.27.0+eclipse4.21-1 Version table: *** 3.27.0+eclipse4.21-1 500 500 http://hu.archive.ubuntu.com/ubuntu jammy/universe amd64 Packages 100 /var/lib/dpkg/status ** Affects: tomcat9 (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1972829 Title: 22.04 tomcat9 with openjdk8 JSP compilation error To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/tomcat9/+bug/1972829/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs