Build failure with an exception windows 11

tryna download minecraft forge, already downloaded java and did all the java home stuff from an indian guy. I just need help on everything honestly. i dont know if the pictures will download or nor, hopefully they do.

im also tryna follow this

im failing miserably

You try to run Gradle with an incompatible Java version.
You use Gradle 8.1.1 and try to run it with Java 21.
This is not supported: Compatibility Matrix