Spark 3.4.4 officially supported Java version are 8/11/17. Please refer following quotes from Spark 3.4.4 documentation:
Spark runs on Java 8/11/17, Scala 2.12/2.13, Python 3.7+, and R 3.5+. Python 3.7 support is deprecated as of Spark 3.4.0. Java 8 prior to version 8u362 support is deprecated as of Spark 3.4.0. When using the Scala API, it is necessary for applications to use the same version of Scala that Spark was compiled for. For example, when using Scala 2.13, use Spark compiled for 2.13, and compile code/applications for Scala 2.13 as well.
Please refer documentation link at https://archive.apache.org/dist/spark/docs/3.4.4/