I am working on a C/C++ project.
I found online some very valuable assets in form of Java libraries that I would like to integrate into my C/C++ project. These are big projects I wouldn't consider porting to C/C++.
I read in a Stackoverflow post that Java code can be compiled to native code, thus one would be able to run a Java project without having a Java Virtual Machine in the middle. I found also that there is even a commercial tool for doing this called ExcelsiorJET thus making me believe even more that this could be a reliable thing.
Taking 1, 2 & 3 into consideration I wondered whether or not, one could take a Java library, compile it into a native library and then create a C or C++ wrapper on top of that library. This means that this way the Java Virtual Machine will not be needed anymore. This way I will get rid of the Java Virtual Machine layer. Could this be possible?
I searched online to see if someone had ever successfully created this kind of a pipeline, but couldn't get to a conclusion...
What I would like to ask is whether or not this pipeline could be possible, at least in theory if there are no online examples of people successfully creating it.
If this is possible could anyone point me in the right direction?