that's not even java code either....
Main Topics
Browse All Topicsqfile->files = LLMalloc(QE_MAX_FILES * sizeof(QFileInfo));
memset(qfile->files, 0, QE_MAX_FILES * sizeof(QFileInfo));
for(index = 0; index < qfile->filesNum; ++index)
{
jstr = (*env)->CallObjectMethod(e
strcpy(qfile->files[index]
(*env)->DeleteLocalRef(env
}
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
jstring Java_GetString_getNativeSt
{
char *cstr = " this is a C native null-terminated stringssss";
jstring jstr = (*env)->NewStringUTF(env,c
return jstr;
}
Here cstr is the user defined string....................
you have to hav the Filename here...
so get the fiel name from the method by using the MethodID..........
that is what you want i hope you understand
regards,
Freedom
Have you first got the class ID and then pass this class ID to the Method ID
/*************************
jclass cls;
jmethodID mid;
cls = (*env)->GetObjectClass(env
mid = (*env)->GetMethodID(env, cls, "getFilesfilename", "(I)LJava/lang/String;");
if(mid == 0)
return;
jstring jstr;
for(index = 0; index < qfile->filesNum; ++index)
{
jstr = (*env)-> getStringUTFChars(env,obj,
// Process the String here ..........................
(*env-)->ReleaseStringUTFC
}
**************************
Hope this helps
if otherwise you can directly pass the Array of Filenames from java to your native code and you can process the filenames inside your native code......
Accessing Arrays of Objects
The JNI provides a separate set of function to access elements of object arrays. You can get and set individual object array elements. You cannot get all the object array elements at once.
* GetObjectArrayElement returns the object element at a given index.
Regards,
Freedom
Business Accounts
Answer for Membership
by: CEHJPosted on 2005-03-11 at 03:30:07ID: 13515680
And the question is ...?