Advertisement
Guest User

Untitled

a guest
May 1st, 2016
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. #include <iostream>
  2. #include "Main.h"
  3.  
  4. using namespace std;
  5.  
  6. // /usr/lib/jvm/java-8-oracle/include/linux
  7.  
  8. JNIEXPORT void JNICALL Java_Main_test__(JNIEnv *env, jobject obj) {
  9. cout << env << endl;
  10. cout << obj << endl;
  11. jclass cls = env->GetObjectClass(obj);
  12. cout << cls << endl;
  13. }
  14.  
  15. /*
  16. * Class: Main
  17. * Method: testMain
  18. * Signature: ()LMain;
  19. */
  20. JNIEXPORT jobject JNICALL Java_Main_testMain (JNIEnv *env, jobject obj) {
  21. return 0;
  22. }
  23.  
  24. /*
  25. * Class: Main
  26. * Method: test
  27. * Signature: (I)V
  28. */
  29. JNIEXPORT void JNICALL Java_Main_test__I(JNIEnv *env, jobject obj, jint num) {
  30. cout << num << endl;
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement