hi all,
i have application which required some environment variable need to be load first.
so is there and way by that i can load all my required environment variable byputting some code in main class.
thanks
Printable View
hi all,
i have application which required some environment variable need to be load first.
so is there and way by that i can load all my required environment variable byputting some code in main class.
thanks
If u r using jboss as app server, it is providing a feature defining Env variables in properties-service.xml file (\jboss-Home\server\node-no\deploy). U will get these variable values by calling System.getProperty("Property_Name") in u r code.
i am using static application(applet) .. so is there any way to do that ??
May be u will get some information from this Thread.
How do I set environment variables from Java? - Stack Overflow