Fix java.lang.NoClassDefFoundError if run without mbapi