I trying to run IDEA from dash menu. So I've create .desktop
file for it and put it to /usr/share/applications
:
$ cat /usr/share/applications/idea.desktop
[Desktop Entry]
Name=IDEA
Comment=IntelliJ IDEA
Exec=/opt/idea/bin/idea.sh
Icon=/opt/idea/bin/idea.png
Terminal=0
Type=Application
Encoding=UTF-8
Categories=Development;IDE;Java;
$ ls -l /usr/share/applications/idea.desktop
-rw-rw-r-- 1 root root 179 Oct 3 11:01 /usr/share/applications/idea.desktop
When I type idea
in dash I can see IDEA's icon, but when I click on it application not start. In the same time if i run /opt/idea/bin/idea.sh
from console, it will run.
How to solve (or debug) this problem?
No JDK found. Please validate either IDEA_JDK, JDK_HOME or JAVA_HOME environment variable points to valid JDK installation.
I've just addexport JDK_HOME=/opt/jdk
to IDEA's startup script and now it works. – php-coder Oct 29 '12 at 07:52