Thursday, October 28, 2010

Shortcut launcher for IntelJ Idea in Ubuntu

Than starting from command prompt, Launcher is a fascinating way to start programs by a single click in Ubuntu.



We can add launchers either in the Desktop or on panels.
To add one, right click the panel and select "Add to panel...", you will get the "Add to panel" window.
Here double click on "custom application launcher".



On the "Create launcher" window, for name type "Idea" and for the  command type:
/bin/sh -c 'export JDK_HOME=path for Java home && path for /bin/idea.sh
E.g.
/bin/sh -c 'export JDK_HOME=/usr/lib/jvm/java-6-sun-1.6.0.20 && /home/suho/proj/idea-IU-95.66/bin/idea.sh'

By clicking the launcher icon on the "Create launcher" window you can select an image file to add as the icon of your launcher. For Idea you can find its image form Idea_Home/bin/

Happy coding!

3 comments:

  1. simply specifying the path to idea.sh seems to work for me

    ReplyDelete
  2. It seems I'm on the right track, I hope I can do well. The result was something I did and was doing to implement it.
    http://www.clickjogosclick.com

    ReplyDelete