Gradle Installation: Java restricted method called by unnamed module

Hello, I’m a student and a total beginner to Gradle. I’m trying to write a program from this tutorial but I was having issues with the program being unable to successfully build due to not detecting Java on the build path. That being said, I uninstalled and reinstalled Gradle, and now when I try to verify the installation in Terminal I get the following error message:

WARNING: A restricted method in java.lang.System has been called
WARNING: java.lang.System::load has been called by net.rubygrapefruit.platform.internal.NativeLibraryLoader 
in an unnamed module (file:/C:/Gradle/gradle-8.13/lib/native-platform-0.22-milestone-28.jar)
WARNING: Use --enable-native-access=ALL-UNNAMED to avoid a warning for callers in this module
WARNING: Restricted methods will be blocked in a future release unless native access is enabled

I’m running on Windows 11 x64 and have JDK 24 installed. Please let me know if any more details are needed for this question. Thanks in advance!!

Gradle 8.13 does not support running with Java 24: Compatibility Matrix

Besides that, you usually should never have any version of Gradle installed.
To build a project you should always use the Gradle wrapper file contained in the project.
To bootstrap a new build, you can use the wrapper of another build or the IDE of your choice that has Gradle support.