Skip to content

QuickStart

smarkwal edited this page Mar 9, 2025 · 3 revisions

Quick-start

Prepare

Test if Java 11, 17, or 21 is installed:

java -version

Download the file jarhc-<version>-app.jar from the latest release of JarHC and rename it to jarhc.jar.

Test if JarHC can be started:

java -jar jarhc.jar --version

Analyze

Run a JarHC analysis:

java -jar jarhc.jar \
     --classpath <artifact> \
     --provided <artifact> \
     --runtime <artifact> \
     --sections "-jm,m,ob" \
     --ignore-missing-annotations \
     --title "Title" \
     --output report.html

Compare

Compare two JarHC reports:

java -jar jarhc.jar \
     --diff report-v1.html report-v2.html \
     --title "Compare V1 and V2" \
     --output report-diff.html \

Clone this wiki locally