Re: overridde system function

From: E.Otter (no-email_at_given.com)
Date: 12/31/03

  • Next message: SpitFire: "Re: UDP protocol & Object"
    Date: Wed, 31 Dec 2003 04:13:03 GMT
    
    

    If you are referring to changing the computer's environment variable (like
    PATH), you *might* be able to do this with System.setProperty(). Its a
    *might* because it depends on what security permissions your code has.
    To read about setting security permissions check the Java SDK documentation
    on the Policy File Creation and Management Tool.

    FYI: System.getEnv is deprecated. Use System.getProperty().

    "nos" <nos@nospam.com> wrote in message
    news:Qe9Hb.471700$Dw6.1385622@attbi_s02...
    Just curious about how I would specify
    the location of a system file like this one

    public static String getenv(String name) {}

    if I wanted to override it in my file
    C:\eclipse\workspace\newdraw\MyClass.java


  • Next message: SpitFire: "Re: UDP protocol & Object"