safe_communicate for windows.

Java works on windows now.