added java code to set and retrieve environment variables