Fix Java for Mac only