Intellij IDEA seem to be looking for uninstalled(older) version of JDK

Answered

When loading my application code in Intellij IDEA 2020.2 it shows following error:

```
C:\OpenJDK\jdk-11\lib\security\cacerts (The system cannot find the path specified)
org.apache.http.ssl.SSLInitializationException: C:\OpenJDK\jdk-11\lib\security\cacerts (The system cannot find the path specified)
```
This started happening just after deleting JDK present in `C:\OpenJDK\jdk-11` and installing OpenJDK (11) in a newer path.

0
4 comments

Hi. Have you set a newly installed JDK in IDEA as described here?https://www.jetbrains.com/help/idea/sdk.html#supported-sdks

0
Avatar
Permanently deleted user

Hi @...,
Thank you for acknowledging.
Yes, just confirmed Module SDK, Project SDK and Platform SDK all are pointing to globally configured Open JDK 11 located in `C:\Program Files\OpenJDK\openjdk-11.0.8_10` (New OpenJDK path).

0
Avatar
Permanently deleted user

Hi @...,
Should I reset the Intellij IDEA settings ? Can you help me with its location ?

0
Avatar
Permanently deleted user

I found the solution myself. It was occurring because of hardcoded truststore in ~/.gradle/gradle.properties. It had following entry for older JDK:
```
systemProp.javax.net.ssl.trustStore=C:/Program\ Files/OpenJDK/openjdk-11.0.8_10/lib/security/cacerts
```

0

Please sign in to leave a comment.