When I read the PATH environment variable using Java, via:
System.getenv("PATH");
The result is less comprehensive then when using the shell, like:
> echo $PATH
Result using Java:
/usr/bin:/bin:/usr/sbin:/sbin
Result using the shell:
/opt/local/bin:/opt/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/X11/bin:/usr/texbin
Why is this? Is this some Java or some shell issue? How can I retrieve the full PATH information in Java? Do I need to take care about something more?