how to get environmental variable from JAVA program
hey! guys
I have an application in java servlets, which uses one IP address. so, everytime i run it on different machine in my LAN, I have to replace the IP address in source code and recompile the entire appication. I don't want this mess.
so, all I need is just to declare one environmental variable in my application's configuration file and export that variable to all processes that starts from that point onwards(i.e.the point where my application starts.)
but I don't know how to get that envireonmental variable value into my program.(exactly what we have getenv() function in C).
so, help me in getting getenv() kind of stuff in JAVA.
very Urgentttttttt.................................please.
Last edited by edreddy; 07-28-2002 at 01:50 AM.
|