-
Notifications
You must be signed in to change notification settings - Fork 1
QuickStart
smarkwal edited this page Mar 9, 2025
·
3 revisions
Test if Java 11, 17, or 21 is installed:
java -versionDownload 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 --versionRun a JarHC analysis:
java -jar jarhc.jar \
--classpath <artifact> \
--provided <artifact> \
--runtime <artifact> \
--sections "-jm,m,ob" \
--ignore-missing-annotations \
--title "Title" \
--output report.htmlCompare two JarHC reports:
java -jar jarhc.jar \
--diff report-v1.html report-v2.html \
--title "Compare V1 and V2" \
--output report-diff.html \JarHC - JAR Health Check | jarhc.org