Set java compatibility