在 Eclipse 中更改家庭环境变量
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/8591092/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Changing home environment variable in eclipse
提问by wesdfgfgd
I know this is a simple question but I have never done this before can someone help me out set up a home environment for eclipse. The reason I am doing this is because I am trying to implement one of maven projects and I keep getting the same error saying it can't find the jar.
我知道这是一个简单的问题,但我以前从未这样做过,有人可以帮助我为 Eclipse 设置家庭环境。我这样做的原因是因为我正在尝试实施 Maven 项目之一,但我不断收到相同的错误,说它找不到 jar。
Here is the message:
这是消息:
The environmental variable HOME is not set. The following directory will be used for storing the Git user configuration and as a default repository location: S:/. If this is not correct please set the HOME environment variable and restart Eclipse.
未设置环境变量 HOME。以下目录将用于存储 Git 用户配置并作为默认存储库位置:S:/。如果这不正确,请设置 HOME 环境变量并重新启动 Eclipse。
回答by tidbeck
If this is on Windows you can set environment variables like here:
如果这是在 Windows 上,您可以设置环境变量,如下所示:
WinPause/Break
-> Advanced system Settings -> Environment Variables
WinPause/Break
-> Advanced system Settings -> Environment Variables
回答by Lucky
Setting up the Home Directory on Windows
在 Windows 上设置主目录
Add the environment variable HOME to your environment variables.
将环境变量 HOME 添加到您的环境变量中。
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.
e.g. C:\Users\Tom
where tom is the %USERPROFILE%
例如C:\Users\Tom
,tom 是 %USERPROFILE%
Note:All letters are case sensitive so c:\users\tomand C:\Users\Tomare totally different in Windows.
注意:所有字母都区分大小写,因此c:\users\tom和C:\Users\Tom在 Windows 中完全不同。