c talk to java on its own terms