How to install JDK on your computer
By: Slav Kurochkin
First lets check if we already have Java installed on your computer, open terminal and run the command: java -version
If Java is installed, and in my case I can see that JDK 1.7 installed, lets figure directory where Java is installed, by executing next command in Terminal:
/usr/libexec/java_home -v 1.7
If Java is not installed download jdk 8 (latest version current days) and install it from Oracle website.