Custom Java runtimes can be generated using jlink [1] which take a fraction of the space needed for a “full” JRE. I have some applications packaged like this and the Windows installer exe, generated using NSIS, is under 15 MB.
[1]: https://docs.oracle.com/en/java/javase/11/tools/jlink.html