I'm trying to run IntelliJ on Ubuntu 14.04. I've read this question but the solutions don't apply -- I've definitely got the JDK installed rather than the JRE. When I try to run idea.sh
, I get the error message:
'tools.jar' seems to be not in IDEA classpath. Please ensure JAVA_HOME points to JDK rather than JRE.
JAVA_HOME
is set to /etc/java-7-openjdk
. Eclipse (in the form of Eclim) has no problem finding it. javac -version
prints javac 1.7.0_55
.
However, if I run sudo ./idea.sh
, IntellJ launches fine. What am I missing?