Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Java and UNIX environment variables

Hi folks,

am I right when I say that it is not possible to access UNIX environment variables from Java (these ones delared by the export statement)?

Cheers,

Heiko

Former Member replied

yes you are right. Java is platform independend and therefor there is no way to access theses environment variables. As a workaround you can get the environment variables by executing a unix command with the exec() method. This is of course not very elegant.

regards

Sebastian

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question