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

Kaloyan Roussev picture Kaloyan Roussev · Oct 4, 2013 · Viewed 98.8k times · Source

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.

Answer

M. Suscripto picture M. Suscripto · Mar 20, 2015

The other answers don't contemplate that if you don't use Git, then you can entirely ignore this warning, along with the "EGit could not detect" one.

But I know... obsessive minds can't just ignore... they NEED to fix it anyway, right?

Then proceed:

  1. Go to "Window --> Preferences" menu
  2. Expand: "Team --> Git --> Confirmations and warnings"
  3. Uncheck the "Home directory" and "Git prefix" boxes
  4. Ok
  5. In the Workspace log, delete the old warnings (red cross icon)
  6. Restart Eclipse
  7. Feel the peace spreading through your mind... :)