Skip to Main Content

Java HotSpot Virtual Machine

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to convert Java String[] to a C char**?

843829Sep 26 2002 — edited Sep 28 2002
I have to call a C function with a parameter char**, a char* array. As the String in java may contain Chinese or Japanese characters, I use a function from IBM DW to get the string:

char* jstringToWindows( JNIEnv* env, jstring jstr );

Because I'm not familiar with C/C++, I don't know how to initial a char**? Use "malloc"? But what this the size of this char**?

I need help. Thanks very much.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 26 2002
Added on Sep 26 2002
1 comment
144 views