Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include "Main.h"
- using namespace std;
- // /usr/lib/jvm/java-8-oracle/include/linux
- JNIEXPORT void JNICALL Java_Main_test__(JNIEnv *env, jobject obj) {
- cout << env << endl;
- cout << obj << endl;
- jclass cls = env->GetObjectClass(obj);
- cout << cls << endl;
- }
- /*
- * Class: Main
- * Method: testMain
- * Signature: ()LMain;
- */
- JNIEXPORT jobject JNICALL Java_Main_testMain (JNIEnv *env, jobject obj) {
- return 0;
- }
- /*
- * Class: Main
- * Method: test
- * Signature: (I)V
- */
- JNIEXPORT void JNICALL Java_Main_test__I(JNIEnv *env, jobject obj, jint num) {
- cout << num << endl;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement