Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

IntelliJ7 isn't working on Ubuntu

 
Hussein Baghdadi
clojure forum advocate
Bartender
Posts: 3479
Clojure Mac Objective C
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi.
I'm trying to use IntelliJ7 on Ubuntu 7.10
I extracted IntelliJ 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.
[ January 05, 2008: Message edited by: John Todd ]
 
Ernest Friedman-Hill
author and iconoclast
Marshal
Pie
Posts: 24208
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you defined either of the environment variables IDEA_JDK or JDK_HOME to point to the installation root of the installed JDK (as directed in the error message?)
 
Hussein Baghdadi
clojure forum advocate
Bartender
Posts: 3479
Clojure Mac Objective C
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No.
I have to define it by editing .profile file or Ubuntu offers a GUI for this?
BTW, what is IDEA_JDK?
I know what is JDK_HOME but IDEA_JDK is a new one to me.
Thanks.
 
Gregg Bolinger
GenRocket Founder
Ranch Hand
Posts: 15302
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by John Todd:
No.
I have to define it by editing .profile file or Ubuntu offers a GUI for this?
BTW, what is IDEA_JDK?
I know what is JDK_HOME but IDEA_JDK is a new one to me.
Thanks.


They are basically the same thing. The simplest thing to do is open your idea.sh file and define the JDK_HOME variable to point to your java install.
 
Rohan Dhruva
Ranch Hand
Posts: 183
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can also edit your ~/.bashrc file and add these two lines:


[ -d /usr/lib/jvm/java-6-sun-1.6.0.03 ] && export JAVA_HOME=/usr/lib/jvm/java-6-sun-1.6.0.03
[ -d /usr/lib/jvm/java-6-sun-1.6.0.03 ] && export JDK_HOME=/usr/lib/jvm/java-6-sun-1.6.0.03


Note that those two lines are ubuntu-specific, and will work only if you have installed JDK using the "sun-java6-jdk" package, otherwise you need to edit those two lines according to your installation path.
Hope that helps.
[ January 07, 2008: Message edited by: Rohan Dhruva ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic