problem while getting Vector object in native C++ method.
I am trying to use declare a new Vector object and then call it's
addElement method in native C++ method. I am facing some issue with
"jmethodID vectConstructor =
as its throwind exception as
"excpection occuredException in thread "main"
Here with the steps i am running...
1. jclass vectorClass = env->FindClass("java/util/Vector");
printf("\n not null");
2. jmethodID vectConstructor =
3. jobject result = env->NewObject(vectorClass, vectConstructor);
4. jmethodID add = env->GetMethodID(vectorClass, "addElement",
but after the first step the result is "null". So what I suspect is its
not able to get "java/util/Vector" class. How do I resolve this
problem? Do i need to add any specific header files for this or do I
need to set something in CLASSPATH ? Please help me to resolve this.
|All times are GMT. The time now is 01:43 PM.|
Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.