diff --git a/java8.patch b/java8.patch
new file mode 100644
index 0000000..8c0e3af
--- /dev/null
+++ b/java8.patch
@@ -0,0 +1,21 @@
+diff -urEbwB apache-tomcat-9.0.85-src.orig/build.xml apache-tomcat-9.0.85-src/build.xml
+--- apache-tomcat-9.0.85-src.orig/build.xml 2024-01-17 16:38:45.550245596 +0100
++++ apache-tomcat-9.0.85-src/build.xml 2024-01-17 16:39:27.487195879 +0100
+@@ -107,17 +107,6 @@
+
+
+
+-
+-
+-
+-
+-
+-
+-
+-
+-
+-
+-
+
+
+
diff --git a/tomcat.spec b/tomcat.spec
index 56f5499..b73938c 100644
--- a/tomcat.spec
+++ b/tomcat.spec
@@ -82,6 +82,7 @@ Patch5: %{name}-%{major_version}.%{minor_version}-jdt.patch
Patch6: tomcat-9.0.75-secretRequired-default.patch
Patch7: tomcat-9.0-fix_catalina.patch
Patch8: tomcat-9.0-logrotate_everything.patch
+Patch9: java8.patch
BuildRequires: ant >= 1.8.1
BuildRequires: ant-antlr
BuildRequires: apache-commons-collections