How to get environment variable using java program? Environment variable means get the value of path, classpath like that. Please help me . Thanks in advance. K.Somasundaram
posted 15 years ago
u can do a System.getProperty() which returns the java.util.Properties object. you can query that using prop.getProperty("java.class.path") to get the class-path. Pls check out all the available properties (keys) from the Properties object. karthik.