启动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.
如果需要任何其他信息,请告诉我,我会提供。
答案 0 :(得分:21)
其他答案没有考虑到如果你不使用Git,那么你可以完全忽略这个警告,以及" EGit无法检测到"之一。
但我知道......强迫性的思想不能忽视......他们无论如何都需要修复它,对吗?
然后继续:
答案 1 :(得分:13)
您需要在系统中设置JAVA_HOME变量。 取决于您的操作系统,您可以检查“如何设置环境变量?”从那时起,您需要设置环境变量
变量名称:JAVA_HOME 值:Java upto bin文件夹的路径
答案 2 :(得分:6)
这是一个警告,因为未定义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变量。
您也可以检查http://git-scm.com/book/en/Getting-Started-First-Time-Git-Setup 和Changing .gitconfig location on Windows
答案 3 :(得分:3)
你应该学习官方文件
在Windows上设置主目录
将环境变量HOME添加到环境变量中。
在Windows 7中:
档案>退出,然后重新启动应用程序。
答案 4 :(得分:0)
这是因为JEE软件包缺少Platform SDK。 (在Eclipse IDE中有用于Eclipse Committers(以前的Eclipse Standard)的“ Eclipse Platform Plug-in Developer Resources”,但在Java EE Developers的Eclipse IDE中没有。) 您可以通过从“ Eclipse项目更新”站点手动安装它来解决此错误。 (帮助->安装新软件->选择“ Eclipse项目更新”->取消选中“按类别分组”->选择“ Eclipse平台插件开发人员资源”)
(对于EGit警告,它们只是警告,与该问题无关)
答案 5 :(得分:0)
无需为系统或任何用户设置环境变量@IBAction func backToFirstScreen(_ sender: UIButton)
{
navigationController?.popViewController(animated:true)
}
或HOME
。所需的数据可以通过一个小的脚本轻松地提供给Eclipse或Git或EGit:
-用大脑确定JAVA_HOME
对应于Ecepse或Git或EGit的位置。您
可以选择这些程序可访问的任何目录。
例如,目录为HOME
。
-检查可执行eclipse文件的位置。
-使用编辑器或您喜欢的文本编辑器应用程序打开一个新的文本文件
在桌面上或您喜欢的任何目录中。
-写下以下三行文字
N:\somewhere\eclipse\HOME
SET HOME=N:\somewhere\eclipse\HOME
start "Run Eclipse" "F:\ProgramFiles\eclipse\java-2019-03\eclipse\eclipse.exe"
EXIT
只是任何现有目录的典范
你选。
“运行Eclipse”是脚本窗口标题的示例。
“ F:\ ProgramFiles \ eclipse \ java-2019-03 \ eclipse \ eclipse.exe”是一个示例
exclipe应用程序启动。