The purpose of this tool is to re-package an existing OpenJDK build to remove classes that are not used by your application.
This can bring a typical JRE size from 100 MB down to 10 MB.
-
Configure the files you want to keep in
classes.filterandfiles.filterfiles.filterwill be applied to the whole JDK directoryclasses.filterwill be applied to the JRE jars
-
Call jdk-trim with a path to an OpenJDK build and an output path.
Gregory Schlomoff greg@aerofs.com