Hi all,
I've got a situation where a
Java application needs to launch an .exe file (by calling Runtime.exec) and then listen on a TCP socket for messages from the .exe process. The problem is that the Java process doesn't receive anything from the .exe process.
Now here's the interesting part:
If I start the Java process and then start the .exe manually, Java receives all communication from the .exe perfectly.
In other words, it seems like the .exe wouldn't have privileges to open network connections or something if launched with Runtime.exec. I'd appreciate any knowledge, educated guesses, even stabs in the dark with regard to what could be the issue here.
Thanks.