JNI Invocation API problem
0 posts in topic
Flat View  Flat View

Posted By:   Bert_Weber
Posted On:   Thursday, April 29, 2004 08:38 AM


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?



About | Sitemap | Contact