United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
JDK-4162112 : user.home System property not set to home dir

Details
Type:
Bug
Submit Date:
1998-07-30
Status:
Closed
Updated Date:
1998-07-31
Project Name:
JDK
Resolved Date:
1998-07-31
Component:
core-libs
OS:
windows_nt
Sub-Component:
java.lang
CPU:
x86
Priority:
P2
Resolution:
Not an Issue
Affected Versions:
1.2.0
Fixed Versions:

Related Reports
Relates:

Sub Tasks

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
                                     
1998-07-31



Hardware and Software, Engineered to Work Together