As technical requirements have evolved, Ametys 4.9 uses Java version 21.
The list of technical compatibilities can be found on page 2. Prerequisites and recommendations in the installation and operation manual.