Hi all, Using java code, I'm trying to retrieve an environment variable defined in the OS(Ubuntu). When I define a variable in bashrc / bash_profile and *"*echo $SOME_VARIABLE*"* in the terminal, it shows it properly. But when I'm accessing it with Java, using System.getenv() , this variable doesn't appear. What could be the reason?
Map<String, String> variables = System.getenv(); for (Map.Entry<String, String> entry : variables.entrySet()) { String name = entry.getKey(); String value = entry.getValue(); System.out.println(name + "=" + value); } Regards, Inosh -- Inosh Perera Software Engineer, WSO2 Inc. Tel: 0785293686
_______________________________________________ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev