Ray,
Thank you! I also figured out I wasn't in the working directory I thought I
was in. The code now looks like this:
chdir("/u/vendor/jig/DOMYAPI3");
dirPtr = getcwd(mydir,sizeof(mydir));
printf("current working directory is %s'\n", mydir);
printf("calling FindClass\n");
#pragma convert(819)
zprotect_class = (*env)->FindClass(env,
"com/mycomp/mysetset/enterprise/zclass");
#pragma convert(0)
if (zprotect_class == NULL)
{
(*env)->ExceptionDescribe(env);
printf("findClass returned NULL\n");
rc = ERR_NO_CLASS;
}
the output in SYSPRINT looks like this
current working directory is /u/vendor/jig/DOMYAPI3'
calling FindClass
findClass returned NULL
I'm not sure what I should be fiddling with at this point. Is this affected by
the classpath? Is there a way to list all the available classes?
Janet
>The class name needs to be fully qualified (but *without* that leading /)
>It might be easier to use #pragma convert(819) to get a UTF-8 string.
>#pragma convert(819)
>zclass_class = (*env)->FindClass(env, "com/mycomp/mysetset/enterprise/zclass");
>#pragma convert(0)
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN