Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot launch IntelliJ IDEA12 in Ubuntu 12 using desktop link

I've created a desktop link to launch IDEA 12 in Unbutu 12. As soon as I am trying to launch the application using this link I am getting an error message: "cannot start Intellij IDEA. NO JDK found. Please validate either IDEA_JDK, JDK_HOME or JAVA_HOME environmental variable points to valid JDK installation".

I can start IDEA from the terminal navigating to the install directory and calling ./idea.sh My configuration: Ubuntu 12.10 Intellij IDEA 12.0.1 Sun JDK 1.6.0_38 IDEA_JDK, JDK_HOME and JAVA_HOME are defined in /etc/bash.bashrc JDK_HOME=/opt/jdk1.6.0_38 export JDK_HOME IDEA_JDK=/opt/jdk1.6.0_38 export IDEA_JDK
JAVA_HOME=/opt/jdk1.6.0_38 export JAVA_HOME PATH=$PATH:$JAVA_HOME/bin export PATH

they are properly displayed when running: echo $JDK_HOME -> /opt/jdk1.6.0_38 echo $IDEA_JDK -> /opt/jdk1.6.0_38

From within IDEA this JDK recognized as a valid JDK under the same specified path.

Desktop linked was created using "Make link" command on the original idea.sh file and copied to the desktop.

Any idea will be appreciated!

like image 362
igor-so Avatar asked Jan 07 '13 16:01

igor-so


1 Answers

Recommended way to integrate IDEA is to invoke Configure | Create Desktop Entry from welcome screen (or via Tools | Create Desktop Entry from main menu). After session restart you should be able to start IDEA from Dash menu, and pin it to the Unity launcher.

like image 82
Roman Shevchenko Avatar answered Oct 23 '22 13:10

Roman Shevchenko