how to java binding