cry between java and cpp