I am trying to install IDEA on Ubuntu 11.10. First, I installed openjdk-7-jdk
. Then I tried running the idea.sh
file as instructed. However it complains:
ERROR: cannot start IntelliJ IDEA.
No JDK found to run IDEA. Please validate either IDEA_JDK, JDK_HOME or JAVA_HOME
environment variable points to valid JDK installation.
Press Enter to continue.
Trying to echo
these three variables prints an empty line to the screen. How (and to what values) do I set these variables and proceed with the installation? Thanks.
I have had this problem a few times...
then run it from the terminal:
OR 2: navigate into the IDEA_HOME/bin and run it from there.
Actually, you can configure the JAVA_HOME in bash. But, IDEA use javac and java from standard bin folders. So, you have to configure like this.
use these command to mv to jvm folder under /usr/lib/jvm
use these commands to configure the JAVA_HOME