I installed Intellij Idea in my ubuntu.And I run it from the terminal.
First I do it like this,change the PATH into .bashrc,and also source it.
but it doesn't work.
And I'm sure the directory is correct. Now I write a alias in .bashrc it works.
alias runidea='cd $THEDIR ; sh idea.sh'
I echo the PATH it's correct.but if I type sh idea.sh
it tells me sh:Can't open idea.sh