启动Eclipse并得到此错误.我如何解决它?
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.
Run Code Online (Sandbox Code Playgroud)
如果需要任何其他信息,请告诉我,我会提供.
小智 23
其他答案没有考虑如果你不使用Git,那么你可以完全忽略这个警告,以及"EGit无法检测"的警告.
但我知道......强迫性思维不能忽视......他们无论如何都需要修复它,对吗?
然后继续:
Din*_*ati 16
您需要在系统中设置JAVA_HOME变量.取决于您的操作系统,您可以检查"如何设置环境变量?" 从那时起,您需要设置环境变量
变量名称:JAVA_HOME值:Java upto bin文件夹的路径
这是一个警告,因为未定义HOME环境,而EGit(Git插件)需要它知道Git配置和存储库的位置.默认情况下,它将使用当前用户基目录,但风险在于,如果您在其他位置安装了Git,则EGit和Git可能具有不同的行为.如果您不使用Git,请按照说明停用警告.
以下是EGit用户指南:https://wiki.eclipse.org/EGit/User_Guide#Setting_up_the_Home_Directory_on_Windows 它解释了您必须将%USERPROFILE%设置为HOME变量作为值.
您也可以在Windows上检查http://git-scm.com/book/en/Getting-Started-First-Time-Git-Setup 和更改.gitconfig位置