Two things you can do. One is create a .bash_profile file in your home directory and add...
Code:
export PATH=":/usr/path/to/java"
Then after you did that in the terminal run..
Code:
source .bash_profile
So it reads the .bash_profile so you don't have to logout and log back in for it to take effect. The other thing you can do is add the path to /etc/profile and run...
Code:
source /etc/profile
when you're done. To make sure it's in your path run...