Sounds like a quoting issue around the last parameter, the file path. I'm not familiar with Java, but maybe the /Upload/Temp/ is being interpreted as a command, not a string? Alternately, make sure there aren't any tabs hiding in your text if you cut-and-pasted into your Java code.
Can we see the code (or just a snippet) you're trying to run if that's not proprietary?
-JD.