• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

To Read Enviornment Variable

 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I want to read enviornment variable into my application. One of the application sets one enviornment in the windows during the application's installation.My application would read that enviornment variable to decide
if that application is installed or not.
In brief,my requirement is to read the enviornment variable in my servlet.Can anyone please suggest the way to do it.

Thanks in advance.
 
Sheriff
Posts: 67266
170
Mac Mac OS X IntelliJ IDE jQuery Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moved to Java in General as this is not a servlet-specific issue.
 
Yogesh Bompilwar
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do anyone know it? Please help me in reading enviornment variable in java.

regards,
Yogesh
 
author and jackaroo
Posts: 12199
280
Mac IntelliJ IDE Firefox Browser Oracle C++ Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Yogesh,

Probably lots of people know the answer, however many of them may not have seen the question in the (relatively) short time between when you posted your original question and when you posted your follow-up. You might want to read Patience Is A Virtue for more information on why posting follow-up messages so quickly may not be in your best interests.

Have you looked at the System.getProperty(String) method - does that provide you with what you need? You can see an example of how to use this in the Sun System Properties tutuorial.

Regards, Andrew
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!