1. Check to see if your Ubuntu Linux operating system architecture is 32-bit or 64-bit
1 2 3 4
root@stan-virtual-machine:~# file /sbin/init /sbin/init: symbolic link to /lib/systemd/systemd root@stan-virtual-machine:~# file /lib/systemd/systemd /lib/systemd/systemd: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.32, BuildID[sha1]=03b9d43299696aa6b67b92f1225fa6045b978cb2, stripped
2. Check if you have Java installed on your system
1 2 3 4 5 6 7 8 9
root@stan-virtual-machine:~# java -version The program 'java' can be found in the following packages: * default-jre * gcj-5-jre-headless * openjdk-8-jre-headless * gcj-4.8-jre-headless * gcj-4.9-jre-headless * openjdk-9-jre-headless Try: apt install <selected package>
3. Completely remove the OpenJDK/JRE from your system and create a directory to hold your Oracle Java JDK/JRE binaries.
# tar xvzf jdk-8u101-linux-x64.tar.gz # vim /etc/profile #add into end of the file JAVA_HOME=/usr/local/java/jdk1.8.0_101 JRE_HOME=$JAVA_HOME/jre PATH=$PATH:$JAVA_HOME/bin:$JRE_HOME/bin export JAVA_HOME export JRE_HOME export PATH