- Joined
- Oct 28, 2010
- Messages
- 4
- Reaction score
- 0
I want to construct a new page object in jni, but it promoted '0x16 is not a valid JNI reference' when I use NewObject in jni native code, is there anything wrong?
public class parser {
class page {
int pageKind;
String Title;
String exTile;
String url;
labelBase[] label;
public page() {}
}
}
jclass page_class = env->FindClass("com/example/hellojni/parser$page");
jmethodID construct_page = env->GetMethodID(page_class,"<init>","(Lcom/example/hellojni/parserV");
jobject obj_Page = env->NewObject(page_class, construct_page);
public class parser {
class page {
int pageKind;
String Title;
String exTile;
String url;
labelBase[] label;
public page() {}
}
}
jclass page_class = env->FindClass("com/example/hellojni/parser$page");
jmethodID construct_page = env->GetMethodID(page_class,"<init>","(Lcom/example/hellojni/parserV");
jobject obj_Page = env->NewObject(page_class, construct_page);