Can
Java create a new process in windows? as VC if i got a main code to run and invoke another .exe file. That means you just create a new procces has nothing to do with the main code. but VC on fit for windows.
Java run on the JVM which is a process of windows,i want to use java to create a new java process. Because i got a task to program a online update module. this is the request:
1.the update package is a .jar file
2.in this whole update procces, the main code can not stop. that mean you must keep the main code runing.
3.you just can only stop some
thread you want to update
4.then cover class refer the thread with new class(the latest version)
5.then you just start the thread.
6. this module also fit for linux. So i can not invoke .dll with java to finish the task. In that case, this code can only fit for windows
So I just want to use "Runtime.getRuntime().exec(Command)" to finish it. But i don't know whether this method can finish this task.