You may set $PATH
permanently in 2 ways.
To set path for particular user :
You may need to make the entry in .bash_profile
in home directory in the user.
e.g in my case I will set java path in tomcat user profile
[tomcat]$ echo "export PATH=$PATH:/path/to/dir" >> /home/tomcat/.bash_profile
To set common path for ALL system users, you may need to set path like this :
[root~]# echo "export PATH=$PATH:/path/to/dir" >> /etc/profile