Re:Pex: A tool for generating .pex (Python EXecutable) files...
by fire_lake on Saturday November 16, 2024 @03:51AM
(#42155341)
You can bundle a JRE with a JAR to get a self contained executable.
Also don’t forget that many compiled languages depend on a particular libc so you’re not totally in the clear there.
JARs still require a JRE to run, and the runtime needs to be invoked. The equivalent would probably be a Python zipapp (which are just Python files zipped into a .pyz the interpreter can run).
Static binaries are one advantage that languages like Go and Rust have though, yeah.