Use export command as follows at command prompt:
Code:
export PATH=$PATH:/usr/lib/j2sdk1.4-sun/bin
You need to add command to
/etc/profile or
/home/you/.bash_profile so that PATH get set automatically after each reboot.
You can also add variable JAVA_HOME
Code:
export JAVA_HOME=/usr/lib/j2sdk1.4-sun