I am a built-in C programmer and integrated my code written in my native C / C ++ with Java using JNI. I was curious to find out if it is possible to follow the link for primitive data_type? I refer to this link http://java.sun.com/docs/books/jni/html/objtypes.html#5279 , which does not help my reason.
Basically, what I want to achieve is something like this: // Get the value of val updated with its own call int nativeFunc (short val); Java function:
class main
{
short val;
val = 0;
nativeFunc(val);
System.out.println(val)
}
int nativeFunc(short val)
{
}
I do not know if a very trivial question is with a very easy answer.
source
share