I installed eclipse in my home directory, and put its path in PATH in ~/.profile.
So it works by
$ eclipse
But when call it with sudo, eclipse isn't found:
$ sudo eclipse
sudo: eclipse: command not found
Which PATH isdoes sudo eclipse useduse to search for eclipse? Is it the user root's PATH?
Thanks.