日期:2014-05-20 浏览次数:20730 次
jclass cls = FindClass...;//FindClass成功
jmethodID mid = m_env->GetMethodID(cls,"test","()Ljava/lang/String;");
jobject obj = env->AllocObject(cls);
jstring jstr = (jstring)env->CallObjectMethod(obj,mid);//java.lang.NullPointerException