Sunday, September 11, 2011

Shortcut launcher for IntelJ Idea in Ubuntu


First 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  && /usr/local/idea/bin/idea.sh'

Add idea icon as follows











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 formIdea_Home/bin/

Happy coding!

No comments:

Post a Comment