I'm having difficulty installing JDK on Ubuntu, I can't get it to work. Can someone tell me what I'm doing wrong?
1- I downloaded jdk-6u35-linux-i586.bin from the oracle website
2- I moved the downloaded file home /
3- I converted it to an executable using chmod + x jdk-6u35-linux-i586.bin
4- I executed it with sudo./jdk1.6.0_35
5- I moved the folder using jdk to / usr / local using mv jdk1.6.0_35 // usr / local /
6- I opened .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 a java version but did not work. This displays the console

sfrj source share