I'm creating a node (electron) app in which the users use visual programming which creates Java source code. The user then has the source code on their machine, and that project can be run from inside the node app by using child process.
The issue is when the user doesn't have Java installed on their machine. I understand that I can check if Java is installed using the method shown here. The issue is how can I download/install the JDK on the users machine from inside my node application?