[ JCCF ] [ java APIs ] [ JNI and Overloading ]

JNI and Overloading

We now extend the first example to include exception handling. We see in the implementation file two native methods, the first one throws an exception, the second one catches and clears an exception. As before, we use the JNIEnv "class" to manipulate Java exceptions.

Links to source code :
  • Makefile
  • Register.h
  • UseRegister.java
  • Register.java
  • Register.cc


  • © Alain.Miniussi@labri.u-bordeaux.fr
    Last updated = june 12th 1997
    url = native/registerV3/index.html