更改Eclipse中的安全存储目录 - Windows上的user.home路径问题 [英] Change secure storage directory in Eclipse - user.home path issue on Windows
问题描述
我在Eclipse中保存密码时遇到问题。我的所有密码都没有记住,我发现Eclipse会尝试将它们保存在我的Windows帐户无法访问的文件夹中。
I have an issue with saving passwords in Eclipse. None of my passwords are "remembered" and I've found Eclipse tries to save them in a folder my Windows account doesn't have access to.
它试图保存to
D:\Users\Administrator\.eclipse\org.eclipse.equinox.security\secure_storage
一个不存在且我的Win帐户无法写入的目录。
a directory that does not exist and to which my Win account couldn't write anyway.
我发现我的user.home变量设置为D:\Users \Administrator。我的猜测是,因为它是安装Java的管理员帐户。
What I found is that my user.home variable is set to D:\Users\Administrator. My wild guess is that's because it's the Administrator account that installed Java.
所以我的问题是 - 我可以更改user.home路径,或者至少更改其他一些属性强制Eclipse Secure Storage在其他地方工作?
So my question is - can I change the user.home path, or at least change some other properties to force Eclipse Secure Storage to work elsewhere?
编辑:所以我在这里找到了一个解决方案 Eclipse的最佳JVM设置是什么?
edit: so I found a solution here What are the best JVM settings for Eclipse?
我将此添加到我的eclipse.ini中:
I added this to my eclipse.ini:
-eclipse.keyring
C:\ some \ path \ file.txt
-eclipse.keyring
C:\some\path\file.txt
这改变了我的目标密码存储文件。
Which changed my target password storage file.
推荐答案
-Duser.home=C:\your\path
经过测试eclipse luna。
Tested on eclipse luna.
这篇关于更改Eclipse中的安全存储目录 - Windows上的user.home路径问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!