Typically, Java application runs with the start argument – path to .jar or .class .
But how to run a Java if my file in memory?
If these methods do not exist, can possibly compile Java with the argument
byte[] FileFromMemory
or
bufferedreader FileFromMemory
I’m trying to run from С++ application
You can write a customer classloader to do this or load the class into an existing class loader using reflection. Both approaches are considered very advanced topics so I would reconsider this unless you have many years of Java experience.
The simplest solution is to write the file to disk e.g. a Ramdisk like
tmpfsThis is a simpler (if less efficient) way to do this.