80,351
社区成员
发帖
与我相关
我的任务
分享
public class CplusGraphics {
static{
System.out.println("方法被调用之前--------------");
System.loadLibrary("ShapeRead");
System.out.println("方法被调用--------------");
}
public static native int GetShpType();
}
/* DO NOT EDIT THIS FILE - it is machine generated */
#include <jni.h>
/* Header for class com_graphics_base_CplusGraphics */
#ifndef _Included_com_graphics_base_CplusGraphics
#define _Included_com_graphics_base_CplusGraphics
#ifdef __cplusplus
extern "C" {
#endif
/*
* Class: com_graphics_base_CplusGraphics
* Method: GetShpType
* Signature: ()I
*/
JNIEXPORT jint JNICALL Java_com_graphics_base_CplusGraphics_GetShpType
(JNIEnv *, jobject);
#ifdef __cplusplus
}
#endif
#endif
#include "com_graphics_base_CplusGraphics.h"
#include <stdlib.h>
#ifndef _Included_com_fileText_fileRead
#define _Included_com_fileText_fileRead
#ifdef __cplusplus
extern "C" {
#endif
//jobject arraylist;
JNIEXPORT jint JNICALL Java_com_graphics_base_CplusGraphics_GetShpType
(JNIEnv *env, jobject obj)
/*
* Class: CplusGraphics
* Method: SetShpType
* Signature: (I)V
*/
{
int i = 100;
jint type = i;
return type;
}
#ifdef __cplusplus
}
#endif
#endif