1 /**********************************************************************
2 Copyright (c) 2000, 2002 IBM Corp. and others.
3 All rights reserved. This program and the accompanying materials
4 are made available under the terms of the Common Public License v1.0
5 which accompanies this distribution, and is available at
6 http://www.eclipse.org/legal/cpl-v10.html
9 R M Yorston - Initial implementation
10 Vicente Fernando - www.alfersoft.com.ar
11 **********************************************************************/
12 package net.sourceforge.phpdt.internal.debug.core;
14 public class Environment {
16 java.lang.System.loadLibrary("Environment");
19 private Environment() {
23 * Gets an environment variable. An environment variable is a
24 * system-dependent external variable that has a string value.
26 * @param name name of the environment variable
27 * @return the value of the variable, or <code>null</code> if the
28 * variable is not defined.
30 public static native String getenv(String name) ;
33 * Sets an environment variable. An environment variable is a
34 * system-dependent external variable that has a string value.
36 * @param name name of the environment variable
37 * @param value value to set
38 * @return 1 if variable could be set, 0 if not.
40 public static native String setenv(String name, String value) ;