by choeger · 3y ago · 0 comments
jlink is more similar to tree shaking: it strips the JRE of anything your program don't need.
Final binary size is naturally vastly reduced b/c you won't have the whole JRE, but last I tested you still end up with very chunky executables (minimal JFX GUIs were coming out to 100-200 MB)
conveyor generate javafx com.example.jfx-test && cd jfx-test
./gradlew jar
conveyor make windows-app
du -h output
71mb on disk. 31mb package size. That's a bit bigger than strictly necessary. It includes FXML and see the discussion of optional plugin modules elsewhere.However you can easily get to 150-200mb on disk by using javafx.web because that includes a custom build of WebKit which is ~75mb all by itself.