I was looking for an api for simple Java-based multiprocessing and found nothing.
I have legacy code that I need to integrate into my Java application. Since this legacy (native) code sometimes crashes, all jvm crashes with it. So what I want to do is run this code and its adapter in another process (and not in the thread!).
There ProcessBuilder in the new java jdks, it allows you to start a new process and gives you In / Outputstream; therefore, a solution to my problem is possible manually. To do this, you need to find the path to your jvm and run it using your process. Then you need to use the stream for communication.
Is there anything that takes on this job? Or do I really need to do this manually?
source
share