public static void put ( String key , String value ) throws Exception { Map < String , String > environemnt = new HashMap < String , String > ( System . getenv ( ) ) ; environemnt . put ( key , value ) ; updateEnvironment ( environemnt ) ; }
Allows dynamic update to the environment variables .