How do I access return value of a Java method returning java.lang.String from C++ in JNI?

前端 未结 4 1284
没有蜡笔的小新
没有蜡笔的小新 2021-01-12 15:02

I am trying to pass back a string from a Java method called from C++. I am not able to find out what JNI function should I call to access the method and be returned a jstrin

4条回答
  •  失恋的感觉
    2021-01-12 15:23

    The signature ()Ljava/lang/String is wrong, due that a class name into JVM must terminate with ;, then in this case signature must be ()Ljava/lang/String;

提交回复
热议问题