I think you are adding extra steps that are not needed. The programming model requires the JVM there are a few tools that compile Java directly to native code. There are tools that compile it to java script, and there are beta quality tools that compile it to WASM.
https://github.com/SteveSanderson/Blazor
https://github.com/kg/ilwasm
https://github.com/konsoletyper/teavm
In two to three years time, Flash will be back.