I'm trying to compile the JCurses package (https://github.com/kba/jcurses), but its Makefile (created by ./configure) still uses the obsolete javah mechanism for generating C headers for its Native classes. I have two problems:

1) I'm new to Java and I don't understand how the new mechanism works
2) I don't know how to modify either ./configure or the Makefile it generates to use the new mechanism

(Ideally, a precompiled binary would be the best solution, but the only one available (which may still not work anymore) is for Windows.

My environment:
Operating System: Linux
Distribution: openSUSE Leap 15.3 x86_64
java version "17" 2021-09-14 LTS
Java(TM) SE Runtime Environment (build 17+35-LTS-2724)
Java HotSpot(TM) 64-Bit Server VM (build 17+35-LTS-2724, mixed mode, sharing)