I have a Linux box on which Java 1.7 is installed:

```
#java -version
java version "1.7.0_09-icedtea"
OpenJDK Runtime Environment (rhel-2.3.4.1.el6_3-x86_64)
OpenJDK 64-Bit Server VM (build 23.2-b09, mixed mode)

```

But for some new tool I need to install the [jdk-8u45-linux-x64.tar.gz](http://download.oracle.com/otn-pub/java/jdk/8u45-b14/jdk-8u45-linux-x64.tar.gz)

So how can I remove old one and install the new one?