在eclipse中改变家庭环境变量

时间:2011-12-21 14:08:51

标签: android eclipse

我知道这是一个简单的问题,但我从来没有这样做过,有人可以帮助我为日食建立一个家庭环境。我这样做的原因是因为我正在尝试实现一个maven项目,并且我一直得到同样的错误,说它无法找到jar。

以下是信息:

未设置环境变量HOME。以下目录将用于存储Git用户配置和默认存储库位置:S:/。如果这不正确,请设置HOME环境变量并重新启动Eclipse。

2 个答案:

答案 0 :(得分:7)

如果是在Windows上,您可以设置环境变量,如:

  

暂停/休息 -> Advanced system Settings -> Environment Variables

答案 1 :(得分:4)

在Windows上设置主目录

将环境变量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其中tom是%USERPROFILE%

注意:所有字母都区分大小写,因此 c:\ users \ tom C:\ Users \ Tom 在Windows中完全不同