After downloading the latest .tar file I ran tar zxvf jdk-7u45-linux-x64.tar.gz to extract java files.
tar zxvf jdk-7u45-linux-x64.tar.gz
Set the path in .bashrc file (
.bashrc
You probably want to do
export PATH=/usr/lib/jvm/jdk1.7.0_45/bin:$PATH
OpenJDK is probably still in the path, and Linux will use the first java it finds.
java
If you don't need it, I would recommend uninstalling OpenJDK.