diff --git a/build.xml b/build.xml
index 9c8ab7d..040318c 100644
--- a/build.xml
+++ b/build.xml
@@ -97,7 +97,7 @@ com.mysql.cj.extra.libs=<full_path_to_connector-j-jardeps>
# - Must point to JDK home directory.
# - Also used for testing if 'com.mysql.cj.testsuite.jvm' is not provided.
# - Mandatory.
-com.mysql.cj.build.jdk=<full_path_to_jdk1.8>
+com.mysql.cj.build.jdk=<full_path_to_jdk17>
# Single JVM/MySQL tests:
# - Must point to JDK or JRE home directory.
@@ -259,7 +259,7 @@ See also com.mysql.cj.conf.PropertyDefinitions.SYSP_* variables for other test o
-
+
@@ -352,12 +352,12 @@ See also com.mysql.cj.conf.PropertyDefinitions.SYSP_* variables for other test o
-
+
-
+
@@ -385,7 +385,7 @@ See also com.mysql.cj.conf.PropertyDefinitions.SYSP_* variables for other test o
-
+
diff --git a/src/build/misc/rpm.spec.in b/src/build/misc/rpm.spec.in
index d2926bb..9cf507b 100644
--- a/src/build/misc/rpm.spec.in
+++ b/src/build/misc/rpm.spec.in
@@ -84,13 +84,13 @@ BuildRequires: ant
%endif
%if 0%{!?with_java:1}
-BuildRequires: java-devel >= 1:1.8.0
+BuildRequires: java-devel >= 1:17
%endif
%if 0%{?sles12:1} || 0%{?sles15:1}
-Requires: java-headless >= 1.8.0
+Requires: java-headless >= 17
%else
-Requires: java-headless >= 1:1.8.0
+Requires: java-headless >= 1:17
%endif
%description