views:

47

answers:

1

I launch a ".bat" file to launch one java test the file contains :

<path to java> -cp<all jar available in the classpath> org.junit.runner.JUnitCore 
<Package.classname>

all jar are separated by ";" when I launch the ".bat"file ,I see the following message on the cmd window : JUnit version 4.6 Could not find class: tester.Test

Time: 0

OK (0 tests)

+1  A: 

Is tester.Test.class in the class path? That may be as simple as adding "." to the classpath.

Paul Tomblin
I have : -cp ././mwt.jar;.... org.junit.runner.JUnitCore Tester.testa space between the last jar and the "org.junit.runner.JUnitCore" and a space between "org.junit.runner.JUnitCore" and the classename
laura
someone could help ?
laura
Did you try putting the "." in the classpath?
Paul Tomblin
you mean by this : .classpath? if it is the case it doesn't work it is not recognized
laura
No, I mean "-cp .;foo.jar;bar.jar;[other jars]"
Paul Tomblin