fable.jputenv
Class Putenv

java.lang.Object
  extended by fable.jputenv.Putenv

public class Putenv
extends java.lang.Object

putenv method


Method Summary
static void init()
          Initialize the class.
static int putenv(java.lang.String name, java.lang.String value)
          Set an environment variable using the native function `putenv' defined in POSIX and ANSI C.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

init

public static void init()
Initialize the class.


putenv

public static int putenv(java.lang.String name,
                         java.lang.String value)
Set an environment variable using the native function `putenv' defined in POSIX and ANSI C.

Parameters:
name - the name of an environment variable.
value - value of an environment variable.
Returns:
0 on success, or -1 on failure.