Welcome to kodlogs,
DId you try installing Java Development Kit which is known as JDK at all?
If you did, you can now try setting your system environment variables to achieve the solution.
GOTO Windows Search option and type -
"Edit the system environment variables"
CLICK on "Environment Variables" at the bottom of the popup window.
Focus on System Variables tab. Click on New button ->
on New System Variable: set
Variable name: JAVA_HOME
Variable value: C:\Program Files\Java\jdk1.8.2\
Note that you may face trouble if you include your \bin folder.
You can also set it through your command prompt window:
echo %JAVA_HOME% set set JAVA_HOME=C:\Program Files\Java\jdk1.8.2 echo %JAVA_HOME%
If that helps upvote my answer. Thanks.