Hi all,
I am using Mac OSX and JDK 1.6, I failed to launch a new process from
java because of the environment variable PATH.
If I run new ProcessBuilder().environment(), it only contains the
but if I run
why the PATH is different between my java app and console? I am using the same user to run command and launch my java application.
I did google it, but failed to find anything useful.
waiting for your reply. cheers.