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.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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.