Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you need to find the exact value that will be returned for
user.homein a java program when it is run under the same user account you should actually run a java program to obtain the value. There is no guaranteed stable mapping to anything else on Windows for this propery and the mapping that is currently used is wrong and it’s not unlikely that it will be changed eventually.This bug entry describes how
user.homeactually gets it’s value currently and discusses several alternatives that might be more appropriate: https://bugs.java.com/bugdatabase/view_bug?bug_id=4787931