I set up jdt.ls.java.home property in settings and I changed my JAVA_HOME environment variable properly, but my Gradle is throwing the error Could not run build action using connection to Gradle distribution:
[error] [gradle-server] Could not run build action using connection to Gradle distribution 'https://services.gradle.org/distributions/gradle-7.4-bin.zip'.
[error] Error getting build for c:\Users\NI3L3GAL\Desktop\Programowanie Nowy folder: Could not run build action using connection to Gradle distribution 'https://services.gradle.org/distributions/gradle-7.4-bin.zip".
There are also more errors:
Could not run phased build action using connection to Gradle distribution 'https://services.gradle.org/distributions/gradle-7.4-bin.zip.
The supplied javaHome seems to be invalid. I cannot find the java executable. Tried location: C:\Program Files\Eclipse Adoptiu... Java(0) [1,11
Could not run phased build action using connection to Gradle distribution 'https://services.gradle.org/distributions/gradle-7.4-bin.zip. The supplied javaHome seems to be invalid. I cannot find the java executable. Tried location: C:\Program Files\Eclipse Adoptiu... Java(0) [11]