Java

    If you see an output like below then Java is already installed on your machine so skip to Add Java to PATH.

    1. Java HotSpot(TM) 64-Bit Server VM (build 25.45-b02, mixed mode)

    If you don’t see the output like above then you need to install Java on your system.

    Using Homebrew

    Then, install latest version of Java 9 via:

    or install Java 8 using:

    Add Java to PATH

    Add JAVA_HOME to your environment variables by adding the line below to your (see section if you don’t have a env.sh file).

      If you are using Java 9, use the following: