Wiki

Clone wiki

rt-coverage / Home

Runtime Coverage

Utility that shows which jars/classes are effectively used by a Java program by monitoring the classloading events caught through JDI.

Author: Telmo Brugnara <tbrugz@gmail.com>

License: AGPLv3

Dependencies

  • apache-commons-logging
  • log4j
  • jdk 1.5 (especially "jdk.home"/lib/tools.jar)

Usage

java -cp rt-coverage.jar;commons-logging-1.1.1.jar;log4j-1.2.15.jar;tools.jar tbrugz.rtcoverage.RuntimeCoverage your.package.MainClass

example: java -cp rt-coverage.jar;commons-logging-1.1.1.jar;log4j-1.2.15.jar;tools.jar tbrugz.rtcoverage.RuntimeCoverage -cp dist/rt-coverage-test.jar tbrugz.rtcoverage.test.DivAurea

or take a look at build.xml: run-rt-coverage

Updated