Could not install Gradle distribution from 'https://services.gradle.org/distributions/gradle-2.7-bin.zip'

Getting error in eclipse while trying to add gradle nature to java project. Is https://services.gradle.org/distributions/gradle-2.7-bin.zip still available or should a newer gradle distribution should be used ?

Synchronize Gradle builds with workspace failed due to an error connecting to the Gradle build.
Could not install Gradle distribution from ‘https://services.gradle.org/distributions/gradle-2.7-bin.zip’.

sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
unable to find valid certification path to requested target
org.gradle.tooling.GradleConnectionException: Could not install Gradle distribution from ‘https://services.gradle.org/distributions/gradle-2.7-bin.zip’.
at org.gradle.tooling.internal.consumer.DistributionFactory$ZippedDistribution$1.call(DistributionFactory.java:137)
at org.gradle.tooling.internal.consumer.DistributionFactory$ZippedDistribution$1.call(DistributionFactory.java:125)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)

Have you ever worked in a company that uses Zscaler? If so, have you found a resolution to this issue?

PKIX path building failed

Usually means that either your Java installation is “broken”, missing the according trusted root certificates, or that on that URL something is answering with a non-valid HTTPS certificate, either due to a man-in-the-middle attack, or due to some Proxy in the network showing you some information that is not coming from the original URL.

Enabling --info or --debug could help get further information on what is actually returned from the URL.
Or you can add -Djavax.net.debug=all to your Gradle commandline so that the HTTPS communication details are logged. You might want to pipe this to a file as it will produce large output. It will for example show which certificates are sent by the server and so on and should help investigating this.

Often - especially if you can open the URL in your browser - this means that you need to use some proxy to access the outworld from your network, but you did not configure Gradle to use that proxy.

How can I solve this problem?
I have this version of gradle:
gradle-8.11.1-bin.zip

A post was split to a new topic: Could not move temporary workspace