Simplify java4cpp runtime