Skip to Main Content

Java HotSpot Virtual Machine

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Running different Java programms from a single native process

843829Apr 29 2004 — edited Apr 30 2004
Hi,

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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 28 2004
Added on Apr 29 2004
3 comments
75 views