All Downloads are FREE. Search and download functionalities are using the official Maven repository.

jogamp.opengl.SystemUtil Maven / Gradle / Ivy

There is a newer version: 2.3.2
Show newest version
package jogamp.opengl;

public class SystemUtil {

    private static volatile boolean getenvSupported = true;
    /** Wrapper for System.getenv(), which doesn't work on platforms
        earlier than JDK 5 */
    public static String getenv(final String variableName) {
        if (getenvSupported) {
            try {
                return System.getenv(variableName);
            } catch (final Error e) {
                getenvSupported = false;
            }
        }
        return null;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy