Follow Below Steps or watch video:
Step 1: Copy path, where bin directory is located
Step 2: Open Control Panel and select System
Step 3: Click on Advance System Settings
Step 4: Click on Environment variable
Step 5: Click on New
Step 6: Type Variable name as JAVA_HOME and paster value as path
Step 7: Select Path and click Edit
Step 8: Click on New
Step 9: Type %JAVA_HOME%\bin
Step 10: Click OK
Step 11: Type below command in command prompt to verify
$ java --version
- Log in to post comments