Unable to run IntelliJ on Ubuntu
Hi.
I'm trying to use IntelliJ7 on Ubuntu 7.10
I extracted intellij to a dir and then I typed:
./idea.sh
But I got the following exception:
ERROR: cannot start IntelliJ IDEA.
No JDK found to run IDEA. Please validate either IDEA_JDK or JDK_HOME points to valid JDK installation
exec: 61: /bin/java: not found
Well I have Java 6 installed on my Ubuntu via Synaptic and it is working...
Any help?
Thanks.
Message was edited by:
Hussein Baghdadi
请先登录再写评论。
Have you created the environment variable IDEA_JDK or JDK_HOME pointing to
your installed JDK?
>>Have you created the environment variable IDEA_JDK or JDK_HOME pointing to your >>installed JDK?
No.
I have to define it by editing .profile file, right?
BTW, what is IDEA_JDK?
I know what is JDK_HOME but IDEA_JDK is a new one to me.
Thanks.
Hussein Baghdadi wrote:
>>> Have you created the environment variable IDEA_JDK or JDK_HOME pointing to your installed JDK?
You'd better define it in a file which is user-independent (is
system-wide), I think for Ubuntu such file is /etc/profile but please
check the documentation. On Fedora I usually create
/etc/profile.d/idea.sh for the same purpose.
IDEA_JDK is an environment variable which the IDEA startup script looks
for. The Java Runtime path set to this variable will be used by the
startup script to run IDEA (you know, IDEA is a Java application itself).
For example, place in /etc/profile the following:
export IDEA_JDK=/path/to/java/runtime
Then log-off and log-on again, so the changes take effect. Then try to
run idea.sh.
You are welcome.
Good luck!
George
Do I have to create the both environment variables, JDK_HOME and IDEA_JDK?
Or JDK_HOME is sufficient?
Is it ok if the both environment variables points to same path (/lib/jvm/jdk-6 for example)?
Thank you.
It works now, thanks :)
But I think IntelliJ's download page should indicate in more details how to install IDEA, not just un-taring the file...
Message was edited by:
Hussein Baghdadi