A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
OCA Java SE 8 Programmer I Study Guide 1Z0-808
this week in the
Java in General
why PATH environment is wrong in Java application?
Joined: Jul 20, 2004
Oct 14, 2008 06:51:00
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
I agree. Here's the link:
subject: why PATH environment is wrong in Java application?
Problems with Java Home in VMBox
classnotfound Java->mysql jdbc problem!
how to uninstall java 1.5?
Editing the bashrc file
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015