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!

Urgent:integrate c++ with java

843829Jan 4 2003 — edited Jan 7 2003
I have a problem while integrating c++ with java. I hava c++ class CResult that contains some method I need which deals with the string. CResult is absolutely correct because I have tested it in VC6.0 and got the perfect answer. But when I use the method through JNI,an error was reported:
an unresovled stack overflow exception have occured!
......
......
I am confident that I do exactly as Java tutorials shows I how to integrate native method into Java.
The native code segment is:

{
CResult result;//In fact, here invoke the error!
char* source="jfdjafkd", *dest;
result.paragaprocessing(source,dest);
printf("%s",dest);
}

What can I do with this problem? Can C++ class and its methods be used in JNI?
My problem is somewhat urgent,because the deadline to turn in the appointment is approching. Does anybody has encounter the same problem? Any suggesstion or help is highly appreciated!

qfzheng
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 4 2003
Added on Jan 4 2003
2 comments
110 views