3 ms·
> Also Java jar files give you the same benefit. You have to explain that one a bit more.
by vintermann 3y ago
> Also Java jar files give you the same benefit.
You have to explain that one a bit more.
- RedShift1 3y agoYou can compile a jar to include all dependencies (like statically compiling C code), then you can just run `java -jar myprogram.jar` and it will work as long as the Java runtime is the same major version or newer than the version you compiled for.
- diarrhea 3y agoThat’s different from the runtime-free binaries produced by Rust and Go (binaries ship with tiny runtime) though. These are truly dependency-free, requiring only that you can execute ELF files.