Fix Java windows