Mac Java workaround