启动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.

如果需要任何其他信息,请告诉我,我会提供。

最佳答案

您需要在系统中设置JAVA_HOME变量。
根据您的操作系统,您可以检查“如何设置环境变量?”。从那时起,您需要设置环境变量

变量名称:JAVA_HOME
值:Java到bin文件夹的路径

  • 在Windows 7中,在开始菜单
  • 中键入“环境”。
  • 选择“为您的帐户编辑环境变量”
  • 单击“新建”按钮。
  • 在名称字段
  • 中输入“HOME”
  • 在值字段中输入“%USERPROFILE%”或其他路径。
  • 单击“确定”,然后再次单击“确定”。您刚刚在Windows上添加了Home目录。
  • 关于eclipse - Eclipse项目范围的错误:警告:未设置环境变量HOME。以下目录将用于存储Git,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/19175089/

    10-13 06:40