updated the java part
now build works