Edit /etc/profile (as root) with your favourite text editor. There should be a line that specifies directories that
contain executables and should be added to
the PATH environment variable.
May I suggest a modification?
If you update the system via CD, you're quite likely
to have a new /etc/profile and need to make
the changes again or merge the two files...
Also, making changes to a central file like
profile isn't necessarily a good idea for n00bs.
I'd suggest making a file
and make it look like this :)
(modify to match your paths ;})
# Add JDK specific settings