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

Make standard system paths and variables available via API

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • None
    • 7
    • other-libs
    • x86
    • windows_xp

      A DESCRIPTION OF THE REQUEST :
      It would be helpful to have standard system paths/variables available from a standardized API, e.g. for Windows:
      %APPDATA%
      %UserProfile%
      %AllUsersProfile%
      %SystemDrive%
      %HOMEPATH%
      %TEMP%
      %USERNAME%
      etc.
      for cache requirement:
      %UserProfile%\Locale Settings\Application Data
      A reasonable location for such an API could be java.nio.file.FileSystem


      JUSTIFICATION :
      I ask this, because there is a problem to save a Java application's data to system's application data location.
      The question came up because of this bug:
      http://netbeans.org/bugzilla/show_bug.cgi?id=57798
      Without using Windows API, NetBeans installer isn't able to determine the system's application data standard location.


      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      Return system variables as String.
      Additionally return system paths as java.nio.file.Path


      CUSTOMER SUBMITTED WORKAROUND :
      Get the values via the JNI interface directly from the OS API.

            Unassigned Unassigned
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Imported:
              Indexed: