resolve duplicated 'java'