I am having difficulties installing the JDK in Ubuntu, I can’t manage to make it work. Could somebody let me know what I am doing wrong?
1- I Downloaded jdk-6u35-linux-i586.bin from oracle’s web site
2- I moved the downloaded file to home/
3- I transformed it into an executable using chmod +x jdk-6u35-linux-i586.bin
4- I executed it using sudo ./jdk1.6.0_35
5- I moved the folder with the jdk to /usr/local using
mv jdk1.6.0_35/ /usr/local/
6- I opened the .bashrc with the "kate" editor and i added the following lines(This file was completely empty by the way)
export JAVA_HOME=/usr/local/jdk1.6.0_35/
export PATH=$JAVA_HOME/bin:$PATH
7- I typed java -version but didn’t work. This is what the console displays

.bashrcis run when you start Bash, so your changes to it won’t take effect within the same session. Try opening a new window and running your command.