I need to update Java

I have downloaded jre-7u21-linux-x64.tar.gz and I dont know where to move it to install it.
I am trying to follow the instructions here http://www.java.com/en/download/help/linux_x64_install.xml
But I can’t get past step 1.
I don’t know where to move the file?

OR…
Is there a better way?

If you MUST have that security hole ridden, flawed POS from Oracle …

For Oracle Java 8 (JDK8 and JRE8) … see here:

sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer
sudo apt-get install oracle-java8-set-default

If you’d prefer Oracle Java 7 … there’s a link to that on the above linked page.

Personally unless you NEED the Oracle version, I’d go with openjre, openjdk, and icedtea … they aren’t full of security holes.
to install those instead of the Oracle versions:

sudo apt-get install openjdk-7-jre icedtea-7-plugin

that’s it.

If you go with the Oracle version … can I suggest you disable java in your web browser, and only enable it when it’s ABSOLUTELY necessary.

OK, where’s the FREE Java version?
Looks like I’ve got openjdk AND Icetea installed!!!
How do I uninstal the Oracle version, I don’t know what its called, so I’m unable to remove it.

Think I’ve sorted it, looked on Synaptic Package Manager and searched for oracle.
Found

oracle-jdk7-installer…7u21-0~webupd8~0

oracle-java6-installer …6u45~webud8~0
oracle-java8-installer …8b90~webud8~0
oracle-java7-installer 7u21-0~webupd8 7u21~webud8~0 This one has a green square.

Should be safe to remove!