http://www.java.com/en/download/faq/java_win64bit.xml
Which Java download should I choose for my 64-bit operating system?
Verify that you are using a 64-bit OS
In Firefox type
about:support
Oracle Java download site
From Oracle Java installation instructions:
# Download from this page
# http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
# Linux x64 180.95 MB jdk-8u151-linux-x64.tar.gz
sudo mkdir -p /usr/local/java
cd /usr/local/java
sudo cp ~/Downloads/jjdk-8u151-linux-x64.tar.gz .
sudo tar xvf jdk-8u151-linux-x64.tar.gz
ls -a
sudo emacs /etc/profile
# Scroll down to the end of the file using your arrow keys and add the following lines below to the end of your /etc/profile file:
# Type/Copy/Paste:
#
export JAVA_VERSION=jdk1.8.0_151
export JAVA_HOME=/usr/local/java/$JAVA_VERSION
export PATH=$PATH:$HOME/bin:$JAVA_HOME/bin
# In the shell
sudo update-alternatives --install "/usr/bin/java" "java" "/usr/local/java/$JAVA_VERSION/bin/java" 1
sudo update-alternatives --install "/usr/bin/javac" "javac" "/usr/local/java/$JAVA_VERSION/bin/javac" 1
sudo update-alternatives --install "/usr/bin/javaws" "javaws" "/usr/local/java/$JAVA_VERSION/bin/javaws" 1
sudo update-alternatives --set java /usr/local/java/$JAVA_VERSION/bin/java
sudo update-alternatives --set javac /usr/local/java/$JAVA_VERSION/bin/javac
sudo update-alternatives --set javaws /usr/local/java/$JAVA_VERSION/bin/javaws
. /etc/profile
cd /opt/google/chrome/plugins
sudo rm -f libnpjp2.so
sudo ln -s /usr/local/java/$JAVA_VERSION/jre/lib/amd64/libnpjp2.so .
sudo mkdir -p /usr/lib/mozilla/plugins
cd /usr/lib/mozilla/plugins
sudo rm -f libnpjp2.so
sudo ln -s /usr/local/java/$JAVA_VERSION/jre/lib/amd64/libnpjp2.so