Register / Login
Win a copy of
Head First Agile
this week in the
this forum made possible by our volunteer staff, including ...
Stephan van Hulst
Java in General
why PATH environment is wrong in Java application?
posted 9 years ago
I am using Mac OSX and JDK 1.6, I failed to launch a new process from
because of the environment variable PATH.
If I run new ProcessBuilder().environment(), it only contains the
but if I run
> echo $PATH > /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/opt/local/bin
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.
SCJP 1.4<br />SCWCD 1.3<br />SCJD<br />SCBCD<br />IBM Xml Cert in progress
Boost this thread!
Problems with Java Home in VMBox
classnotfound Java->mysql jdbc problem!
how to uninstall java 1.5?
Editing the bashrc file