Name: dm26566 Date: 07/30/98
System property user.home returns path to user's
USERPROFILE directory and not to user's HOME
directory (as was the case with JDK1.1.6). It even
appears that it is impossible to derive a home
directory path from any combination of System
properties. Windows NT has a very clear notion
of what a home directory is and user.home should
respect this notion.
Here is a program that demonstrates the problem:
public class test {
public static void main(String[] args) {
System.out.println("user.home system property value is ==>" +
System.getProperty("user.home") + "<==");
}
}
C:> use12beta4
java full version "JDK-1.2beta4-K"
C:> java test
user.home system property value is ==>C:\NT40\Profiles\Administrator<==
C:> use116
java full version "JDK1.1.6N"
C:> java test
user.home system property value is ==>C:/<==
(Review ID: 35784)
======================================================================