If the method does not change the reference values, you simply pass the parameters as values and get their addresses in your own code:
JNIEXPORT jint JNICALL Java_com_example_Summator_sum(JNIEnv *env, jobject thisObj,
jint firstAddend, jint secondAddend) {
return (jint) sum(&firstAddend, &secondAddend);
}
And the method in Java:
native int sum(int firstAdded, int secondAddend);
Apparently you don't need pointers anywhere other than a function sum, so there is no reason to work with them in Java.