Possible Duplicate:
Access shell environment variables Java
I’ve created a stand-alone java application in linux.
How can I obtain the value of the environment variables (e.g. assigned in the .bashrc file).
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
For obtaining only one System Variable use the following code:
If it returns
nullthen make changes in your.bashrcfile. Try exporting that particular variable.