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!

C++ version of JNI

843829Sep 15 2010 — edited Sep 15 2010
so hi basically really confused and new to jni. um basically i have in C

jstring str;
char * str1 = getStringhere(); // this just returns a char* of a string in a another // function i created
str = str1;

and this works but once i changed it to c++ it says almost the exact same thing
i get an error like cannot convert char* to _jstring*

it worked for C y not c++

Comments

Processing
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Oct 13 2010
Added on Sep 15 2010
2 comments
192 views