Facebook Twitter Instagram
    TecAdmin
    • Home
    • Ubuntu 20.04
      • Upgrade Ubuntu
      • Install Java
      • Install Node.js
      • Install Docker
      • Install LAMP Stack
    • Tutorials
      • AWS
      • Shell Scripting
      • Docker
      • Git
      • MongoDB
    • FeedBack
    • Submit Article
    • About Us
    Facebook Twitter Instagram
    TecAdmin
    Home»Windows Tutorials»How to Set JAVA_HOME on Windows 7/8/10

    How to Set JAVA_HOME on Windows 7/8/10

    RahulBy RahulFebruary 21, 20172 Mins ReadUpdated:October 23, 2018

    If you have already installed Java on Windows systems. Then you need to set the JAVA_HOME environment variable to make it work properly. Additionally, you also need to add java bin folder location in PATH environment variable. This tutorial will help you to set JAVA_HOME on Windows 7/8/10 operating systems.

    Step 1 – Edit Environment Variables

    You can set environment variable by opening system properties dialog blog.

    • Type sysdm.cpl on run window or Right-click on My Computer and select Properties.

    • Go to Advanced tab.
    • Click Environment Variables… button.

    Step 2 – Set JAVA_HOME on Windows

    Now click on New button under system variables. An input dialog will open. Enter the following details. The variable value may differ as per installed Java version.

      Variable name:    JAVA_HOME
      Variable value:   C:\Program Files\Java\jdk1.8.0_121
    

    Step 3 – Set Path Variable on Windows

    Additionally, You will also be required to add bin location of your java binaries to the systems Path variable. Edit PATH variable under system variables and append string ;%JAVA_HOME%\bin in variable value and save it.

    Step 4 – Verify Settings

    Finally, you may need to verify all the settings. To verify, open command prompt and type below commands to check JAVA_HOME and Path environment variables values.

    C:\Users\Rahul> echo %JAVA_HOME%
    C:\Users\Rahul> path
    

    The result will be something like below.

    • How to Install Apache Maven on Windows
    Java Java_home jdk jre
    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email WhatsApp
    Previous ArticleHow to Install Python 3.6 on CentOS/RHEL 7/6 & Fedora 30/29
    Next Article How to Convert String to int in Java

    Related Posts

    How to Clear the ASP.NET Temporary files in Windows

    Updated:June 15, 20221 Min Read

    Creating Python Virtual Environment on Windows

    Updated:June 3, 20222 Mins Read

    How to Enable / disable Firewall in Windows

    Updated:May 17, 20222 Mins Read

    How to Install JAVA on Ubuntu 22.04

    Updated:May 16, 20224 Mins Read

    Java HashMap – How to Get Value from Key

    Updated:April 6, 20222 Mins Read

    Java HashMap – How to Get Key from Value

    Updated:April 6, 20222 Mins Read

    4 Comments

    1. Shreshthhvardhan Godaria on March 18, 2022 5:24 pm

      Thanks Bhai.

      Reply
    2. MICHAEL MONT-ETON on September 6, 2020 2:12 pm

      Thanks Rahul.

      Reply
    3. Sinue on June 18, 2019 3:39 pm

      Thanks man!

      Reply
    4. NEEHARIKA on June 3, 2019 8:34 am

      AWESOME THANKS

      Reply

    Leave A Reply Cancel Reply

    Recent Posts
    • What is the /etc/nsswitch.conf file in Linux
    • How to Install Ionic Framework on Ubuntu 22.04
    • What is the /etc/hosts file in Linux
    • How to Install Angular CLI on Ubuntu 22.04
    • How to Install Composer on Ubuntu 22.04
    Facebook Twitter Instagram Pinterest
    © 2022 Tecadmin.net. All Rights Reserved | Terms  | Privacy Policy

    Type above and press Enter to search. Press Esc to cancel.