Register / Login
Win a copy of
Mesos in Action
this week in the
Java in General
why PATH environment is wrong in Java application?
posted 7 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
().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
Problems with Java Home in VMBox
classnotfound Java->mysql jdbc problem!
how to uninstall java 1.5?
Editing the bashrc file