OK, the essence twist is this:
I used the process API to close the second virtual machine, but this did not work.
The reason is that my second application is the Eclipse RCP Application, and I started it using the included eclipse.exe program.
However, this means that the Process API destroy () method will target the eclipse.exe process. Killing this process leaves the Java process unharmed. So, one of my colleagues wrote a small application that will kill the desired application.
So, one of the solutions for using the Process API (and removing redundant middle steps) is to get rid of running Eclipse when my first virtual machine duplicates all its functions.
I think I have to work.
source share