I have made sure that the junit.jar file is in my classpath, but I am still receiving the following error when trying to run the TreasureHunt demo:
C:\JProbeSuite6.0.2\demos\treasurehunt>ant run-test -Djprobe=true
Buildfile: build.xml
Trying to override old definition of task jpcovmerge
Trying to override old definition of task jpcovreport
init:
compile:
compile-test:
run-test.init.notinstrumented:
run-test.init.instrumented:
check.exist.jpl:
run-test.init.instrumented.createjpl:
run-test:
[junit] Running demos.jprobe.treasurehunt.Suite
[junit] JProbe(tm) Coverage Version 6.0.2
[junit] (c)1998-2006 by Quest Software Inc.
[junit] All rights reserved. JProbe is a trademark of Quest Software Inc.
[junit] JProbe Connection Manager is waiting on port 52991
[junit] java.lang.NoClassDefFoundError: org/apache/tools/ant/taskdefs/optional/junit/JUnitTestRunner
[junit] Exception in thread "main"
BUILD FAILED
file:C:/JProbeSuite6.0.2/demos/treasurehunt/build.xml:155: Test demos.jprobe.treasurehunt.Suite failed
Total time: 4 seconds
Is there something that I am missing?
Software Bug. This problem has been identified as CR42768. This problem will occur if the optional.jar or the junit.jar files don't exist in the lib directory of the ANT_HOME for the very first run of -Djprobe=true.
WORKAROUND:
This JUnit task with -Djprobe=true is using a jpl file that is created for the very first time the user runs this task with JProbe. The jpl file naming "treasurehunt-coverage.jpl" should exist in the JPROBE_HOME\demos\treasurehunt\jpl\ directory. This jpl file does not contain the correct classpath for the JUnit task. You will need to remove that jpl file and then run the command "ant run-test -Djprobe=true".
Whenever you change any classpath setting or change the path of junit.jar file, you will need to manually delete this file and then run -Djprobe=true.
STATUS:
Waiting for fix in a future release of JProbe
applies to version 6.x
© ALL RIGHTS RESERVED. Feedback Terms of Use Privacy Cookie Preference Center