As this is installed somewhere below your home directory (and NOT system wide) and thus only of concern to you and not to one of the other of the systems users, this is NOT to go in /etc/profile. Ths is true even if you argue that you are the only user because that is not true. One of the others you will know is root, but there are more. Just look at /etc/passwd for a list of them. You really do not want to change the PATH of *root *so that *root *will execute some binary of ANT instead of one of the same name in /sbin. That would be a major security breach.
Ah, I realize now you meant the hidden profile in home, NOT the profile in /etc. So if I set it in profile.local, the ANT command would be available to all users? By putting in home, I’m restricting the ant command.
Setting this in my home directory is exactly what I want. Kudos to both of you for your patience.
We express ourselves very carefully. When I type .profile, I mean .profile and not profile.
And what you say is again a misconception. Setting the PATH to point to the directory with the ANT programs in your home directory does NOT make them available to others. It only means that they are found when called by their name only instead of by a path specification. They are made “available” when others can execute them (that mean the r- and x-bits set for group and/or other on the file and all the directories leading to it), which is something completely different.
Nevertheless, you have learned something again. Fruitfull day today.
Edit: And about the kudus, you could click on the green rectangles in the right upper corner. Surprise!