Making a wrapper for java functions

First cut.