Although my instrumented application runs correctly, the coverage data file contains no information. What could be wrong?
One cause for this is that you might be running the VM without specifying some required options. • Make sure that you are running the correct version of VM (Refer to Software Requirements in help documentation). • Make sure that the options Xdebug and Xnoagent are passed to the VM. • If you are using the classic VM, make sure that the option -XDjava.compiler=NONE is passed to the VM. • Check whether the option to enable coverage “XrunJCVRun:.” Is correctly passed to the VM. • On application startup, the coverage agent displays a “coverage enabled” message. Make sure that this message is displayed when you run your application. • Add verbose=true option to the JCVRun and check whether JCVRun displays a ‘coverage enabled’ message for all the classes for which coverage is enabled. • Check whether the following output is written to the DOS prompt when your application exits. *** Coverage data successfully written 26. I added source files to my JCover project, instrumented it and executed i