Make sure the Java examples are built along with the API.  Make section names language-specific to avoid errors from newer releases of doxygen.