simplified the java binding a little bit
fixed capitalization