This guide will show you how to install Java JDK 8 on Windows, Mac OS X and Linux.
Step 1: go to link. Accept license agreement and download latest Java 8 JDK (32 or 64 bit) for Windows:
Step 2: once the download is complete, run .exe for install. Click Next:
Step 3: select the path of JDK installation and click Next :
Step 4: select the path of JRE installation and click Next :
Step 5: once installation is complete click Close :
Step 6: open CMD (command line prompt) as administrator;
Step 7: set JAVA_HOME environment variable:
C: \> setx JAVA_HOME "C:\Program Files\Java\jdk1.8.0_231"
Step 8: add JAVA_HOME and subfolders to PATH :
C: \> setx PATH "%JAVA_HOME%;%JAVA_HOME%\bin;%JAVA_HOME%\lib;%PATH%;"
For the matter of simplicity you've chosen Java JDK 8 implementation of AdoptOpenJDK.
Install brew, it is pretty easy and straightforward. Paste the following command on your terminal.
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Brew is a package manager for that easily allows you to install packages on macOS X, it is similar to the debian package manager apt-get. Paste the command bellow on you terminal and you will have the Java JDK 8 on your machine.
brew tap AdoptOpenJDK/openjdk && brew install adoptopenjdk-openjdk8
Step 1: open terminal (CTRL+ALT+T);
Step 2: updates APT:
$ sudo apt update
Step 3: install Java 8:
$ sudo apt-get install openjdk-8-jdk
(Optional): if you already have another Java version:
$ sudo update-alternatives --config java
and select the correct version.