Embedding a jar file possible?


is it possible to embed a jar file with electron? Because when i try to do it it says : “Applet failed to run. No Java plug-in was found.”.

This has obviously to do with Chrome dropping Java support.
Is there any way around this or not?



I have “wrapped” an applet (jar file) which id launched from within an electron app, I used a callback with child process:

const exec = require(‘child_process’).exec;

then somewhere in the code after the DOM elements are created, etc. i use:

const child = exec(‘java -jar Appler.jar’,
(error, stdout,stderr) =>{
console.log(stdout: ${stdout});
console.log(stderr: ${stderr});

In this case the *jar file is also executable from the terminal, in any case, I am still trying to re-vamp some old applets to run as standalone apps wrapped in electron, it does not look very promising though…