Added cygwin support for java.