Skip to content

Representing Java Classes

gershnik-smartsheet edited this page May 18, 2016 · 7 revisions

Once you declared Java types as is explained in [Declaring Java Types] you will need to use the corresponding Java "class object" (represented by the jclass type in raw JNI). Following the SmJNI philosophy there are multiple ways of doing so from very low level (barely above raw JNI) to a very high. This guide will show the simplest approach. It should work in vast majority of cases unless you are doing something very sophisticated with multiple class loaders and such.

Clone this wiki locally