1

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?

3
  • I would add a JDK (probably zipped) to the electron app (as asset) and write to a temporary location on local disk. En general, a JDK does not need any special installation. Or download the ZIP in the electron app from e.g. download.java.net/openjdk/jdk17/ri/… and unzip to local disk. Commented Jul 8, 2022 at 18:55
  • @PeterMmm I was worried about licensing for distributing the JDK, so I guess downloading it would be a workaround. Commented Jul 9, 2022 at 17:55
  • hey @John i am doing the exact same, my app requires JRE to be installed in the client system for it to make some functionalities work. did you figure out a way to do it? Commented Nov 17, 2022 at 5:27

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.