wood burning stoves 2.0*
The moose likes Linux / UNIX and the fly likes IntelliJ7 isn't working on Ubuntu Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Linux / UNIX
Bookmark "IntelliJ7 isn Watch "IntelliJ7 isn New topic
Author

IntelliJ7 isn't working on Ubuntu

Hussein Baghdadi
clojure forum advocate
Bartender

Joined: Nov 08, 2003
Posts: 3476

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

Joined: Jul 08, 2003
Posts: 24183
    
  34

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?)


[Jess in Action][AskingGoodQuestions]
Hussein Baghdadi
clojure forum advocate
Bartender

Joined: Nov 08, 2003
Posts: 3476

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

Joined: Jul 11, 2001
Posts: 15299
    
    6

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.


GenRocket - Experts at Building Test Data
Rohan Dhruva
Ranch Hand

Joined: May 08, 2007
Posts: 183
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 ]

Rohan B. Dhruva
SCJP 1.5
 
 
subject: IntelliJ7 isn't working on Ubuntu
 
Similar Threads
IntelliJ, format code isn't working on Ubuntu
JDK1.5 installation failed on ubuntu linux 11.10 server
Problem with JBoss build
Build problem
is it possible to install JDK on windows and UBUNTU( window based Wubi) ?