What are the ways to call native methods, except JNA, JNI, JACOB?

  • 2
    Meanwhile, all methods are based on JNI. - cy6erGn0m
  • cy6erGn0m, and how to find a call to the native methods in the code? I searched by searching for the source code of the words native, jna, jni, load, loadLibrary, the name of the library that is jerking, and nothing was found. I'm already desperate, trying to understand how the code works. Saw classes inherited from awt.Robot, only they are caused by reflection. Is it possible to call java code from c ++, without any changes on the java side? - Anton Feoktistov
  • 2
    Yes you can. Any public method can simply be taken and called. Well ... maybe not quite easy, but possible. But on the contrary, the word native definitely there. The same awt.Roboot should call native methods (implementation of the RobotPeer interface, to be more precise). - cy6erGn0m

1 answer 1