Original message
I'm currently working on several executable Jars being called by another Java process (or "Launcher) called by a scheduler.
To do this, we use ProcessBuilder. However, we need to be able to share variable between the parent process and the child process (The executable JAR).
I know it's possible to pass variable to the child process with the environment() method.
What we need is to be able to share informations from the child process to the parent process (the process results, mostly files). Is it possible? If it is, how so?
Update The two java processes are on the same computer and so share the same disk space. The Launcher process is called by a scheduler and this process cannot be changed.
I know that using a file is probably the best solution but I was wondering if there was no other solution.
Thanks in advance for your help.