I got this exception only by using JUnit-tests. C:\testing\emma-2.0.4217\examples>java
-cp .\junit.jar;outinstr;out AllTests
EMMA: collecting runtime coverage data ...
Exception in thread "main" java.lang.NoClassDefFoundError:com/vladium/emma/rt/RT
What is wrong???
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
You are using EMMA's offline instrumentation mode.
As mentioned in the documentation, in this mode your application classes become dependent on emma.jar. Either (a) add emma.jar to the runtime classpath or (b) copy emma.jar to the lib/ext subdirectory of your JRE.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I got this exception only by using JUnit-tests. C:\testing\emma-2.0.4217\examples>java
-cp .\junit.jar;outinstr;out AllTests
EMMA: collecting runtime coverage data ...
Exception in thread "main" java.lang.NoClassDefFoundError:com/vladium/emma/rt/RT
What is wrong???
You are using EMMA's offline instrumentation mode.
As mentioned in the documentation, in this mode your application classes become dependent on emma.jar. Either (a) add emma.jar to the runtime classpath or (b) copy emma.jar to the lib/ext subdirectory of your JRE.