JNI signatures for nested classes?

I am trying to use JNI on WindowsXP, java version:

java version "1.6.0_13" Java (TM) SE Runtime Environment (build 1.6.0_13-b03) Java client virtual machine HotSpot (TM) (build 11.3-b02, mixed mode, sharing)

When trying to get jclass for nested class

jclass c = env-> FindClass ("A $ B"); assert (c);

the second line says the same thing works on Linux with a slightly different version of Java (1.5 ... IIRC).

I tried several permutations like

LA $ B; AB LA.B;

but to no avail.

Any advice would be highly appreciated.

Martin

+3
source share
1 answer

, .

: Oracle , ?

:

, , , . Java (A $B.class) - C/++. , " ". , Linux. !

: , FindClass null, assert . , env->ExceptionDescribe(), stacktrace stderr. , env->ExceptionOccurred(), , Java, Java, .

+1

Source: https://habr.com/ru/post/1706125/


All Articles