How to write a compiler for Java,C,C++/ Python inside electron app?


I am trying to develop an application which will have a compiler for programming languages like java, c, c++,python to give output when a code is given as input. I found no sources online about this.


Electron uses Node, so you could always run the compilers as child processes:

require('child_process').exec(`javac \"${nameOfFileToCompile}\"`,options,callback)

Node’s child_process docs are here: