updated java wrapper to be inline with changes in library

preparatory to adding new functions

I still maintain whoever came up with the idea of git is having a laugh at everyone's expense

It could not be more obscure, nor arcane if you made it that way on purpose !