Check out example codes for "how to run springboots processbuilder". It will help you in understanding the concepts better.

Code Example 1

@PostConstruct
	public void doLog()throws IOException {
		ProcessBuilder processBuilder = new ProcessBuilder();
		processBuilder.command("python3","hello.py");
		processBuilder.directory(new File("src"));

		processBuilder.start();
		log.info("the services is running");
	}

Learn ReactJs, React Native from akashmittal.com