This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

why PATH environment is wrong in Java application?

 
Zee Ho
Ranch Hand
Posts: 128
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic