For setup JAVA Environment in your System

Install JDK from oracle

goto your installed java directory

copy the path : C:/programfile/java/jdk(versionname)/bin

Open environment variable setup menu from Computer Properties

In second Box click New and write name as JAVA_HOME and Copy this path without /bin

In PATH:  append this link with /bin