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

Please return the functionality of getenv()

    XMLWordPrintable

Details

    • tiger
    • generic, x86
    • generic, solaris_2.6, windows_nt, windows_2000, windows_xp

    Description



      Name: dbT83986 Date: 12/21/98


      Feature request:
          all that remains of the getenv() function is the method that returns an error message:
         /** Obsolete.
           * Gets an environment variable. An environment variable is a
           * system dependent external variable that has a string value.
           * @param name the name of the environment variable
           * @return the value of the variable, or null if the variable is
           * not defined.
           *
           */
          public static String getenv(String name) {
      throw new Error("getenv no longer supported, use properties and -D instead: " + name);
          }

      The need for this particular call is very important while I continue to work with
      an existing cross platform application that creates environment variables during
      the runtime. There is no 'easy' way to get these values. Most of the deprecation
      documentation is misleading (it states that getenv() is replaced with getProperty()).

      Please return the funtionality where ever it is...
      (Review ID: 38108)
      ======================================================================

      Attachments

        Issue Links

          Activity

            People

              martin Martin Buchholz
              dblairsunw Dave Blair (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: