Do you know of a Java library to access the native linux api?
I guess something like this must use JNI. So be it.
Do you know of a Java library to access the native linux api?
I guess something like this must use JNI. So be it.
Have a look at JNA.
Here is the summary of JNA from their home page.
JNA provides Java programs easy access to native shared libraries (DLLs on Windows) without writing anything but Java code—no JNI or native code is required. This functionality is comparable to Windows' Platform/Invoke and Python's ctypes. Access is dynamic at runtime without code generation.
See their getting started page for some samples. Like calling native printf.