PRB: System.getProperty("user.home") returns incorrectlyLast reviewed: January 29, 1998Article ID: Q177181 |
The information in this article applies to:
SYMPTOMSWhen calling System.getProperty("user.home") the Java Virtual Machine (VM) ignores the HOME environment variable value. It always returns "<windir>\java" whether or not you set the HOME environment variable.
STATUSMicrosoft is researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.
MORE INFORMATION
Steps to Reproduce BehaviorCreate a java project and include the following class to it:
class TestProperty { public static void main(String args[]) { System.out.println(System.getProperty("user.home")); } }This always returns <windir>\java (where <windir> is the location of your Windows 95 or NT installation), no matter which directory you set the HOME environment variable to.
REFERENCESFor the latest Knowledge Base articles and other support information on Visual J++ and the SDK for Java, see the following page on the Microsoft Technical Support site:
http://support.microsoft.com/support/visualj/ http://support.microsoft.com/support/java/ |
Additional query words: System properties home
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |