Click start button.
- Right click "Computer"
- Click "Properties"
- Click "Advanced System Settings"
- "Environment variables" in "Advanced" tab.
- Click the "New" button to create a new variable under user variables pane.
- Enter "HOME" in the name field
- Enter "%USERPROFILE%" or some other path in the value field. (HOME should point to your home directory e.g. C:\Users\Tom. Ensure correct case! E.g. C:\users instead of C:\Users may cause problems!)
- Click OK, and OK again. You have just added the Home directory on Windows.
参考链接自 http://stackoverflow.com/questions/6989847/change-user-locationhome-variable-in-egit-eclipse