Sponsored Link •
|
Advertisement
|
Advertisement
|
This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.
Message:
> I am doing something very similar to what is right out of Rob Gordon's JNI book but I am getting compile errors. This should be a simple one for you guys. Please help. > Here's the code: > > > > Savi_Code = Savi_Int_Report(nList[nx].id, &tags, report_format); > if (Savi_Code == SAVI_OK) { > // determine size of array to create > // create the field IDs so we can access the Java object's fields > // create the Java constructor method ID so it can be called > switch (report_format) { > case FULL_REPORT: > // set aryFullTagt.tag_id > // delete the local reference created above > } > // return the array created > // report was not generated properly > > error C2223: left of '->FindClass' must point to struct/union > error C2275: 'jmethodID' : illegal use of this type as an expression > error C2223: left of '->DeleteLocalRef' must point to struct/union > ... (more similar) > Error executing cl.exe. > It is like it is not finding or using the header files or using the wrong ones but I have checked to be sure the included jni.h and jni_md.h are up to date (from JBuilder5). I also made sure the class file used in FindClass is in the environment's classpath. |
Sponsored Links
|