Interface Process

    • Method Detail

      • getWorkingDirectory

        java.io.File getWorkingDirectory()
                                  throws NativeException
        Returns the process' current working directory.
        Throws:
        NativeException - On failure.
      • setWorkingDirectory

        void setWorkingDirectory​(java.io.File directory)
                          throws NativeException
        Sets the process' working directory.
        Throws:
        NativeException - On failure.
      • getEnvironmentVariable

        java.lang.String getEnvironmentVariable​(java.lang.String name)
                                         throws NativeException
        Get the value of an environment variable.
        Returns:
        The value or null if no such environment variable. Also returns null for an environment variable whose value is an empty string.
        Throws:
        NativeException - On failure.
      • setEnvironmentVariable

        void setEnvironmentVariable​(java.lang.String name,
                                    java.lang.String value)
                             throws NativeException
        Sets the value of an environment variable.
        Parameters:
        value - the new value. Use null or an empty string to remove the environment variable. Note that on some platforms it is not possible to remove the environment variable safely. On such platforms, the value is set to an empty string instead.
        Throws:
        NativeException - On failure.