My first how to, on adding the java repository to keep java up to date

first off, add the repository, ill be using Gedit

root@bt:~# gedit /etc/apt/sources.list

on a new line type: deb debs all
save and exit

second, add the gnupg key

root@bt:~# apt-key adv --keyserver --recv-keys 5CB26B26

last, update and install sun jre

root@bt:~# apt-get update && apt-get install update-sun-jre

and you should be good to go