Ubuntu – Intellij idea not opening because of jdk/bin/java


I am relatively new to ubuntu. i am using idea intellij from jetbrains for developing applications with gwt and java. Recently i have installed ubuntu 14.04 and everything works fine but idea 13. I have jdki586-1.7 and i have installed it using this tutorial. Then i have extracted intellij to my home directory and tried to launch idea.sh from terminal with:


from path/to/idea/bin directory. But, it gave me this error:

./idea.sh: 1: eval: /usr/local/java/jdk1.7.0_51/bin/java: not found

I have searched through the Internet, but couldn't find similar topic.
Any suggestion would be appreciated.
Thanks in advance for your answer.

Best Answer

I had a same issue but the above answer did not solve my issue. I had to switch as a root user then running idea.sh worked fine without any issue. May be a permission issue or setting $PATH may be the issue.