Using jlink to cross-compile minimal JREs
[]
Jake Wharton
Azul Zulu also provides a JRE that I can use to run compiled programs. While the Java bytecode we compiled is platform independent, the JRE is specific to each platform and my server runs Linux x64. $ tar -czf hello-linux.tgz zulu-hello-jre-linux-x64 out $ scp hello-linux.tgz jw@server: hello.tgz 100% 16MB 2.1MB/s 00:08 $ ssh jw@server "tar xzf hello-linux.tgz && zulu-hello-jre-linux-x64/bin/java -cp out Main" Hello, world!