JDK-4162112 : user.home System property not set to home dir
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.lang
  • Affected Version: 1.2.0
  • Priority: P2
  • Status: Closed
  • Resolution: Not an Issue
  • OS: windows_nt
  • CPU: x86
  • Submitted: 1998-07-30
  • Updated: 1998-07-31
  • Resolved: 1998-07-31
Related Reports
Relates :  
Description

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)
======================================================================

Comments
EVALUATION We made a conscious decision to change the definition of the "user.home" property on Win32; see 4100238 for more info. This is not a bug. -- mr@eng 7/31/1998
31-07-1998