Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

You 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.


That’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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: