I would like to call Cobol routines (NETCOBOL) from a Java application via the JNI. Is it possible directly?
Yes. I assume you are using Windows. Compile your NetCobol into a DLL. JNI are designed to call Windows DLLs regardless of the language.
Do I need to use C++ code in between?
JNI is C++. If you can call your DLL with C++, so can JNI.
Does someone have some examples?
Since you appear fluent in C++, you can code a simple C++ routine to call your DLL.
Dimandja