Running different Java programms from a single native process
843829Apr 29 2004 — edited Apr 30 2004Hi,
we are writing a C++ app, from where we want to execute different Java programms. What we did was to use the Invocation interface to start a VM, get the main method and execute the main. After this destroying the VM. So far works fine, but running the second Java programm JNI_CreateJavaVM returns -1.
How can I run more than one Java programm from a single process, where the classpath and other options are different? Or what is wrong with the second call? I found the problem allready in other posts, but not a real solution. Any help?
Thx
Bert