As I'm working on my Dell/Linux laptop, I used to start IntelliJ from the command line as instructed in the readme. Starting it from the command line started bugging me after a while, so I wanted to create a launcher for it. Creating a launcher seemed quite simple at first, but getting it to work was something else.
After a while I figured it out that by using the following line in my application launcher:
/bin/sh -c "export JDK_HOME=/path/to/java&&/path/to/intellij/bin/idea.sh"
I was able to get my IntelliJ launcher to work. As you might notice, you will still have to change the path to your JDK_HOME and IntelliJ installation directory, because they might be different on your own system.
I hope this post can help all of you out there trying to do the same thing.
Thank you very much for the post.
ReplyDeleteIt helped - thank you.
ReplyDeleteThank you VERY much. What a pain it's been to get this launcher working! Idea is awesome, I'm glad to have found a easier way to launch it every day.
ReplyDeleteThank you ! It works for RubyMine as well, as one would expect.
ReplyDeletemerci bien.
ReplyDeleteSo cool thanks a lot :)
ReplyDeleteYou can also use bash -l to get your environment variables as if you had logged into a terminal:
ReplyDeletebash -l path/to/rubymine/bin/rubmine.sh
Works for me and takes away that dependency on the JDK_HOME.
Hi, how you doing? :)
ReplyDeleteAlternatively, expose java on your path for the gnome session: http://robvdlindenvooren.wordpress.com/2010/02/28/ubuntu-karmic-koala-notes-to-self/
Hi, I created a custom application launcher and gave the input for the command option in launcher properties as: /bin/sh -c "export JDK_HOME=/home/hasini/Setupfiles/jdk1.6.0_21&&/home/hasini/Software/idea-IC-93.94/bin/idea.sh"
ReplyDeleteBut the launcher doesn't launch IDEA or doesn't even give any error.
Any help would be really appriciated.
Thanks,
Hasini.
THANKS!!!!!!!!!!
ReplyDeleteThanks! :)
ReplyDeleteThank you very much!!!!!!!!!!!!!!!!!!!
ReplyDeletethank you very much!!! worked like a charm :)
ReplyDelete