DISCLAIMER: The information in this site is for educational purpose only. The authors of this blog are not responsible for any kind of misuse of this information.

Saturday, October 10, 2015

CLion on Arch linux

Sup ?

I wanted to try the brand new IDE from JetBrains for C/C++ development. It's called CLion.
It was really easy to deploy. I downloaded the tar from their site and executed

./clion.sh

But, after a short time ... the JVM crashed :O
I was really sad and tried the quick and dirty fix - upgrading my JRE ...
I gave clion.sh a second chance but the same exception comes out ...

I notice the jre directory near it. Maybe it uses it ?
I check the java -version of it and discovered it's OpenJDK RE 1.8
A little survey in clion.sh reveals it secrets:

# Locate a JDK installation directory which will be used to run the IDE.
# Try (in order): CL_JDK, ../jre, JDK_HOME, JAVA_HOME, "java" in PATH

so lets set CL_JDK to our installed JRE path and ... it's working :)

happy CLioning ^ ^