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
try just run it by typing idea.sh
into your shell (without sh
)
like $ idea.sh
not $ sh idea.sh
Try this
alias runidea='~/idea-IU-111.277/bin/idea.sh'
Now the alias is created and then run the following command
runidea
idea-IU-111.277 can be replaced by your intellij idea folder
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.