Re: Can't find my own exception class via JNI
- From: pauljlucas.removethis@xxxxxxxxxxxxxxxxxxxxx (Paul J. Lucas)
- Date: Wed, 30 Nov 2005 08:18:38 GMT
Gordon Beaton <not@xxxxxxxxx> wrote:
> Where is the class, and what does your classpath contain?
It's in the same place (package and jar) as the class that
contains the native methods.
> Correct me if I'm wrong, but your findClassOrDie() doesn't appear to
> actually return the jclass it is declared to return.
It was a mistake in my transcription to Usenet. The function
should have been (and actually is):
jclass findClassOrDie( JNIEnv *env, char const *name ) {
jclass const theClass = env->FindClass( name );
if ( !theClass ) {
cerr << "FindClass(" << name << ") failed" << endl;
exit( 1 );
}
return theClass;
}
- Paul
.
- Follow-Ups:
- Re: Can't find my own exception class via JNI
- From: Gordon Beaton
- Re: Can't find my own exception class via JNI
- References:
- Can't find my own exception class via JNI
- From: Paul J. Lucas
- Re: Can't find my own exception class via JNI
- From: Gordon Beaton
- Can't find my own exception class via JNI
- Prev by Date: Java diff viewer Component?
- Next by Date: object entry queue
- Previous by thread: Re: Can't find my own exception class via JNI
- Next by thread: Re: Can't find my own exception class via JNI
- Index(es):