japi: Move Java API binding to cmake