Generate Java wrapper.