File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
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: 24166
    
  30

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: 15286
    
    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 - A Test Data Generation Platform
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: IntelliJ7 isn't working on Ubuntu
 
Similar Threads
Build problem
is it possible to install JDK on windows and UBUNTU( window based Wubi) ?
Problem with JBoss build
JDK1.5 installation failed on ubuntu linux 11.10 server
IntelliJ, format code isn't working on Ubuntu