Facebooktwittergoogle_plusredditpinterestlinkedinmail

I know this is very simple things to do and specially if you are an expert developer 🙂 . But it will be better if we have all the steps in a single place. So here is the step by step guideline to set JAVA_HOME path in Windows 7 / Windows 8 / Windows 10.

  1. Know your Java installation Directory and Copy the JDK installation directory path.

If you didn’t change the default path during java installation then it’ll be C:\Program Files\Java\jdk1.8.0_111

copy-java-installation-path

       2. Follow the below step on the basis of your operating system

  • Windows 7 : Right click My Computer icon -> Select “Properties” > Advanced [Jump to Step 3]
  • Windows 8 : Go to Control Panel > System > Advanced System Settings [Jump to Step 3]
  • Windows 10 : Go to control Panel -> System and Security -> System -> Advanced System Settings

    Here is the complete step guideline for windows 10

  2.1) Go to control panel -> System and Security

      go-to-control-panel

            2.2) Click on System

select-system-in-control-panel

3. Click on Advanced system settings and Environment Variables.. as shown in below image.

( For Windows 7 user: After click on “Advanced” , System Properties window will be prompt. Rest all step will be same for Windows 7 , Windows 8 and Windows 10)

system-advance-system-settings

4. Under System Variables , Click New.

system-new-system-variable

5. Add new JAVA_HOME System Variable .

Variable Name: JAVA_HOME
Variable Value: C:\Program Files\Java\jdk1.8.0_111

add-new-systemvariable-java_home

6. Append JAVA_HOME variable in Path variable.

Select Path variable under Environment Variables , click on Edit button. Append %JAVA_HOME%\bin in Path variable value, click Ok to apply the changes.

append-java_home-path

7. Verify :

Open command prompt and check java -version. If you correctly configured then it will display the Java version on command prompt. (If command prompt is already opened then close it and open it again to load the new environment variable)

set-env-9

How to set JAVA_HOME path in Windows 10 Roopendra TechnologyTips and TricksWindows,
I know this is very simple things to do and specially if you are an expert developer 🙂 . But it will be better if we have all the steps in a single place. So here is the step by step guideline to set JAVA_HOME path in Windows 7...
I know this is very simple things to do and specially if you are an expert developer 🙂 . But it will be better if we have all the steps in a single place. So here is the step by step guideline to set JAVA_HOME path in Windows 7 / Windows 8 / Windows 10. <ol> <li>Know your Java installation Directory and Copy the JDK installation directory path.</li> </ol> <blockquote>If you didn't change the default path during java installation then it'll be <strong>C:\Program Files\Java\jdk1.8.0_111</strong></blockquote> <p style="padding-left: 60px;"><a href="http://techieroop.com/wp-content/uploads/2016/11/Copy-Java-installation-Path-1.png"><img class="alignnone wp-image-620 size-full" src="http://techieroop.com/wp-content/uploads/2016/11/Copy-Java-installation-Path-1.png" alt="copy-java-installation-path" width="754" height="247" /></a></p>        2. Follow the below step on the basis of your operating system <ul> <li><strong>Windows 7</strong> : Right click My Computer icon -> Select "Properties" > Advanced [Jump to Step 3]</li> <li><strong>Windows 8</strong> : Go to Control Panel > System > Advanced System Settings [Jump to Step 3]</li> <li><strong>Windows 10</strong> : Go to control Panel -> System and Security -> System -> Advanced System Settings</li> </ul> <p style="padding-left: 30px;">    Here is the complete step guideline for windows 10</p> <p style="padding-left: 60px;">  2.1) Go to <strong>control panel</strong> -> <strong>System and Security </strong></p>       <a href="http://techieroop.com/wp-content/uploads/2016/11/Go-To-Control-Panel.png" target="_blank"><img class="alignnone wp-image-612 size-full" src="http://techieroop.com/wp-content/uploads/2016/11/Go-To-Control-Panel.png" alt="go-to-control-panel" width="751" height="361" /></a> <p style="padding-left: 30px;">            2.2) Click on <strong>System</strong></p> <p style="padding-left: 60px;"><a href="http://techieroop.com/wp-content/uploads/2016/11/Select-System-In-Control-Panel.png"><img class="alignnone wp-image-613 size-full" src="http://techieroop.com/wp-content/uploads/2016/11/Select-System-In-Control-Panel.png" alt="select-system-in-control-panel" width="610" height="187" /></a></p> <p style="padding-left: 30px;">3. Click on <strong>Advanced system settings </strong>and<strong> Environment Variables.. </strong> as shown in below image.</p> <p style="padding-left: 30px;">( For Windows 7 user: After click on "Advanced" , System Properties window will be prompt. Rest all step will be same for Windows 7 , Windows 8 and Windows 10)</p> <p style="padding-left: 60px;"><a href="http://techieroop.com/wp-content/uploads/2016/11/System-Advance-System-Settings.png"><img class="alignnone wp-image-616 size-full" src="http://techieroop.com/wp-content/uploads/2016/11/System-Advance-System-Settings.png" alt="system-advance-system-settings" width="651" height="526" /></a></p> <p style="padding-left: 30px;">4. Under <strong>System Variables </strong>, Click New.</p> <p style="padding-left: 60px;"><a href="http://techieroop.com/wp-content/uploads/2016/11/System-New-System-Variable.png"><img class="alignnone wp-image-617 size-full" src="http://techieroop.com/wp-content/uploads/2016/11/System-New-System-Variable.png" alt="system-new-system-variable" width="631" height="595" /></a></p> <p style="padding-left: 30px;">5. Add new JAVA_HOME System Variable .</p> <p style="padding-left: 60px;"><strong>Variable Name</strong>: JAVA_HOME <strong>Variable Value</strong>: C:\Program Files\Java\jdk1.8.0_111</p> <p style="padding-left: 60px;"><a href="http://techieroop.com/wp-content/uploads/2016/11/Add-New-SystemVariable-JAVA_HOME.png"><img class="alignnone wp-image-609 size-full" src="http://techieroop.com/wp-content/uploads/2016/11/Add-New-SystemVariable-JAVA_HOME.png" alt="add-new-systemvariable-java_home" width="657" height="603" /></a></p> <p style="padding-left: 30px;">6. Append <strong>JAVA_HOME</strong> variable in <strong>Path</strong> variable.</p> <p style="padding-left: 30px;">Select <strong>Path</strong> variable under Environment Variables , click on Edit button. Append <strong>%JAVA_HOME%\bin </strong>in Path variable value, click Ok to apply the changes.</p> <p style="padding-left: 60px;"><a href="http://techieroop.com/wp-content/uploads/2016/11/Append-JAVA_HOME-path.png"><img class="alignnone wp-image-610 size-full" src="http://techieroop.com/wp-content/uploads/2016/11/Append-JAVA_HOME-path.png" alt="append-java_home-path" width="681" height="619" /></a></p> <p style="padding-left: 30px;">7. <strong>Verify</strong> :</p> <p style="padding-left: 30px;">Open command prompt and check java -version. If you correctly configured then it will display the Java version on command prompt. (If command prompt is already opened then close it and open it again to load the new environment variable)</p> <p style="padding-left: 60px;"><a href="http://techieroop.com/wp-content/uploads/2016/11/set-env-9.png"><img class="alignnone wp-image-615 size-full" src="http://techieroop.com/wp-content/uploads/2016/11/set-env-9.png" alt="set-env-9" width="626" height="254" /></a></p>
(Visited 419 times, 62 visits today)
Facebooktwittergoogle_pluslinkedinrss