"; */ ?>

IntelliJ IDEA Ubuntu Launcher

IntelliJ IDEA Ubuntu Launcher

IntelliJ IDEA is very easy to install: download and unzip, can’t be simpler.

However creating a launcher for it is not that straightforward, whether it is a Gnome / KDE keyboard shortcut, desktop launcher, docking launcher ( e.g. avant window navigator ) or a simple “Alt+F1” menu item.

But it is Ubuntu after all: the virtual land of unlimited possibilities.

Here is a simple launcher script that will do the trick:

#!/bin/bash
 
export JAVA_HOME=/usr/lib/jvm/java-6-sun
export JDK_HOME=/usr/lib/jvm/java-6-sun
 
export IDEA_HOME=/opt/idea-IU-95.66
 
export IDEA_VM_OPTIONS="$IDEA_HOME/bin/idea.vmoptions"
export IDEA_PROPERTIES="$IDEA_HOME/bin/idea.properties"
 
cd "$IDEA_HOME/bin"
export LIBXCB_ALLOW_SLOPPY_LOCK=1
 
./idea.sh

A couple of things to note:

1. Point JAVA_HOME and JAVA_JDK to the place where you have JDK installed
2. Point IDEA_HOME where you have IntelliJ IDEA installed
3. Make this script executable e.g. chmod +x idea-launcher.sh [ given that you name it “idea-launcher.sh”, of course ]

Now you are free to create any kind of launcher that suites your needs pointing it to this script.