eclipsegitegit

Eclipse project-wide error: Warning: The environment variable HOME is not set. The following directory will be used to store the Git


Started Eclipse and got this error. How do I fix it?

Warning: The environment variable HOME is not set. The following directory will be used to store the Git
user global configuration and to define the default location to store repositories: 'C:\Documents and Settings\Wizard'. If this is
not correct please set the HOME environment variable and restart Eclipse. Otherwise Git for Windows and
EGit might behave differently since they see different configuration options.
This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.

If any additional information is needed, let me know and I will provide it.


Solution

  • You need to set the JAVA_HOME variable in your system. Depends on your Operating system you can check for "How to set Environment variable?" and from that point you need to set environment variable

    Variable Name : JAVA_HOME Value : Path of Java upto bin folder

    1. In Windows 7, type "environment" at the start menu
    2. Select "Edit environment variables for your account"
    3. Click the "New" button.
    4. Enter "HOME" in the name field
    5. Enter "%USERPROFILE%" or some other path in the value field.
    6. Click OK, and OK again. You have just added the Home directory on Windows.