JNI,JAVA如何调用C++代码并且传入int参数?

求解!给点资料链接也行?

都没人会吗?

参考此文:

https://www3.ntu.edu.sg/home/ehchua/programming/java/JavaNativeInterface.html

  1. Passing Arguments and Result between Java & Native Programs

4.1 Passing Primitives