Problems with java dir

So, recently I was in problems with ant4eclipse. By some reason, in one of our Windows hudson machines, some plugins project are failing with the message: "Cannot run program "C:\Program": CreateProcess error=2, The system cannot find the file specified".

The error was obvious right? My java was in "Program Files" dir, and it has a space char in it, so, I made this change to work with any acceptable dir. 

I'm hope it help you. Thanks.