Cannot start Clion 2019.2: No JDK found (Linux)

Answered

Hello,

 

I've Clion 2019.1.4 working fine (Redhat 6), but I cannot start 2019.2:

"No JDK found. Please validate either CLION_JDK, JDK_HOME or JAVA_HOME environment variable points to valid JDK installation."

 

Any idea how to fix that?

0
5 comments

Hello!

How did you install CLion 2019.2?

0
Avatar
Permanently deleted user

Hi, I downloaded the pre-compiled binary, extracted the tar.gz, then whenever I run ./bin/clion.sh I get the JDK not found error. EAP build has the same issue.

With previous versions I do the same and had no issues.

 

I manged to run CLion 2019.2 by assigning and exporting the env variable JAVA_HOME to the installed Java version on my linux (1.8.0_172). The font is ugly though!

 

From what I understood, Clion should be bundled by custom JDK build.. but something is not correct I assume?

 

0

Yes, we are bundling custom JRE with Linux distributions. Boot JDK path is stored in the <product>.jdk file located in the config folder. You can check bin/<product>.sh file for the JDK search order. More details can be found here, in the "Linux" section.

Actually, if you don't have CLION_JDK or CLION_JDK_64 environment variable defined, CLion should start under bundled JDK version.

0
Avatar
Permanently deleted user

A late update from me. The issue is due to my linux GLIBC version is 2.12. From 2019.2+ the bundled JDK version requires GLIBC_2.14.

 

0

Thanks a lot for the information!

0

Please sign in to leave a comment.