Can AppImage for .so library (opencv 4) for use with java JNI be created

Is it possible to create AppImage for library opencv 4.4 for use with java? It’s not stand alone app, but so libraries be called by other (java based) app. It should run on Oracle Linux 6.10 and be called from Java 11 app as native library. Bundle should also include ffmpeg.
OpenCV: https://opencv.org/opencv-4-4-0/
It’s impossible to build OpenCV 4.4.0 on Oracle Linux 6.10 - old cmake, c++, etc…

Hello @mvlad7402 and welcome to AppImage.
As its name implies, AppImage is a format for distributing applications.

So you could use it for distributing an application that needs opencv. You would bundle the application, opencv, ffmpeg, and any other dependencies needed by the applciation inside the AppImage.