thanks for the help first i tried entering root and editing .bashrc with winscp and adding the line
export PATH = $PATH:/opt/jdk-6u26/bin
and then saving the file but it didn't work but then i just typed in command prompt
export PATH = $PATH:/opt/jdk-6u26/bin and got the error
-bash: export: `=': not a valid identifier
so i removed the spaces and it worked (export PATH=$PATH:/opt/jdk-6u26/bin)
although i am bewildered as i followed all the instructions when installing the java development rootkit and one of the final instructions was to export some paths.