Java doesn't accept minus handshake