jQuery in Action, 3rd edition
The moose likes Java in General and the fly likes JNI......String Array??? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "JNI......String Array???" Watch "JNI......String Array???" New topic

JNI......String Array???

Pomchi Bedi
Ranch Hand

Joined: Apr 03, 2001
Posts: 55
How can I return a String array from C(native) to Java code?I don't want to pass any argument to the native function.I have a string array in my C code and I want to use that string array in my java code.
Michael Ernest
High Plains Drifter

Joined: Oct 25, 2000
Posts: 7292

I haven't done much with much JNI ('cause compiling is not how I want to spend my life), but I found a tutorial for you that has an example that shows what you're interested in:
JNI How-To
Michael Ernest, co-author of: The Complete Java 2 Certification Study Guide

Make visible what, without you, might perhaps never have been seen.
- Robert Bresson
I agree. Here's the link: http://aspose.com/file-tools
subject: JNI......String Array???
It's not a secret anymore!