PKIX path building failed
means that there is a problem with establishing a secure HTTPS connection.
This can for example be because you need to use some proxy you did not configure, or some firewall or anti-virus aggressively intervening, or it could also be a broken or bad Java installation with which you run Gradle.
Thank you for responding.
I’ve installed JDK 8 (from Oracle) again and updated both JAVA_HOME and PATH. Could you please provide more details about what you mean by “need to use some proxy you did not configure”?
When I used the latest version of JDK 21 and Spring 3.x.x, it worked seamlessly without any errors. Therefore, it doesn’t appear to be a firewall or antivirus issue. There might be a compatibility concern between Java, Spring, and Gradle, but I’m uncertain as the error seems to be indicating a different direction.
Could you please provide more details about what you mean by “need to use some proxy you did not configure”?
That’s irrelevant if it worked with Java 21.
Maybe the Java 8 you downloaded is missing some essential trusted certificates or similar.
I’d recommend you download instead the latest Java 8 from Adoptium and try with that.