Created
April 27, 2018 06:15
-
-
Save RidaRidss/f3617f9a98752fe75ecadc39fd1ec6ce to your computer and use it in GitHub Desktop.
Setup It Up : JAVA_HOME Environment Variable Setup For Window 10
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. Advanced System Settings | |
Type advanced system settings in the search box (beside the Windows start button), clicks View advanced system settings. | |
2. Environment Variables | |
Select Advance tab, clicks Environment Variables | |
3. Add JAVA_HOME | |
In System variables, add a new JAVA_HOME variable and point it to the JDK installed folder. | |
Note | |
Don’t include the \bin folder, just the JDK path. For example | |
Correct – C:\Program Files\Java\jdk1.8.0_60 | |
Wrong – C:\Program Files\Java\jdk1.8.0_60\bin | |
4. Update PATH | |
In System variables, find PATH, clicks edit and append this %JAVA_HOME%\bin to the end. | |
5. Test | |
Open a command prompt, type : | |
C:\Users\Rida>echo %JAVA_HOME% | |
C:\Program Files\Java\jdk1.8.0_152 | |
C:\Users\Rida>javac -version | |
javac 1.8.0_152 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment