How can I start a Java application from within a C++ process?
I don't want to invoke just some parts of the Java application, as could be done with JNI, but actually run the whole Java application.
Yes, you can follow the steps at this link: http://java.sun.com/docs/books/jni/html/invoke.html
Note that the sample invokes the "main" method of the loaded class so it would be just as if you did something like java -jar app.jar where the manifest in app jar specifies a main class that loads and starts the app.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With