aspose file tools
The moose likes Java in General and the fly likes JNI- Error handling within C++ code Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "JNI- Error handling within C++ code" Watch "JNI- Error handling within C++ code" New topic
Author

JNI- Error handling within C++ code

Donald King
Greenhorn

Joined: Dec 08, 2000
Posts: 16
I'm invoking the JVM within my C++ code. When I get an error on CallStaticVoidMethod, I don't have a good way of
trapping the error message. ExceptionDescribe() writes to stderr, but I need to capture the error message as a string and place
it in a log file. Does anyone know how to retrieve the error message from the jthrowable object as a string?
Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
This may help, I hope...
Donald King
Greenhorn

Joined: Dec 08, 2000
Posts: 16
Unfortunately, I had read that already to no effect. I've moved this posting to the advanced board to see if anyone there has any ideas.
Thanks anyway for the link.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JNI- Error handling within C++ code
 
Similar Threads
JNI- Error handling within C++ code
Assertion
SOLUTION! function that works in script tag but not in js file
dan exam doubt 11
About Comment line "//"