Don't open studio before this guide mentions it. ##Java Install Sun Java JDK (not Open JDK) (this content comes from : https://www.digitalocean.com/community/tutorials/how-to-manually-install-oracle-java-on-a-debian-or-ubuntu-vps)
- first download Java JDK (x64, tar) from the Oracle server : http://www.oracle.com/technetwork/java/javase/downloads/index.html
- login as root :
sudo su
mkdir /opt/jdk
The /opt directory is reserved for all the software and add-on packages that are not part of the default installation.- extract the file to the
/opt/jdk
dir :tar -zxf YOUR-FILE-x64.tar.gz -C /opt/jdk
- check if directory exists:
ls /opt/jdk