Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4162112

user.home System property not set to home dir

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P2 P2
    • None
    • 1.2.0
    • core-libs
    • x86
    • windows_nt



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

            mr Mark Reinhold
            dmcduffisunw Dale Mcduffie (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: