set java compatibility