solved mac java compatibility