1. Add support for cygwin 2. beautify the java format