Following are steps to set the path in windows
Step1: Right Click on My Computer and Select the properties.
Step2: Click on advanced system settings.
Step3: Click on Environment Variables.
Step4: Click on new Button of user variables.Type PATH in the Variable name.
Step6: Copy the path of bin folder which is installed in the JDK folder.
Step7: Paste the Path of bin folder in Variable value and click on OK Button.
Step8: In the same way you can add the class-path of java (C:\Program Files\Java\jdk1.8.0_92\lib) folder.
Step9: Open your command prompt and type the below command s javac and java -version for java installation and path setting is or not.
Step1: Right Click on My Computer and Select the properties.
Step2: Click on advanced system settings.
Step3: Click on Environment Variables.
Step4: Click on new Button of user variables.Type PATH in the Variable name.
Step6: Copy the path of bin folder which is installed in the JDK folder.
Step7: Paste the Path of bin folder in Variable value and click on OK Button.
Step8: In the same way you can add the class-path of java (C:\Program Files\Java\jdk1.8.0_92\lib) folder.
Step9: Open your command prompt and type the below command s javac and java -version for java installation and path setting is or not.