Class TestCase1 not found.
I am developing a tool which reads test cases in a jar file and uses
junit to run these cases.
> > I want to run test cases in a jar file using junit and the jar file is
> > not in the class path. I wrote the following code, but it does not
[quoted text clipped - 21 lines]
>
> what's the error message?
proudbug - 14 Dec 2007 14:35 GMT
> Class TestCase1 not found.
>
> I am developing a tool which reads test cases in a jar file and uses
> junit to run these cases.
The code works on my machine. I think there's something wrong with the
classpath. Double check the url to see if case.jar is where you claim.
Also check if TestCase1 class is in any package. e.g. if TestCase1 is
in package comp.lang.java and under the folder comp/lang/java/ of
case.jar root, then you need to write:
loader.loadClass("comp.lang.java.TestCase1");
> > > I want to run test cases in a jar file using junit and the jar file is
> > > not in the class path. I wrote the following code, but it does not
[quoted text clipped - 23 lines]
>
> - Show quoted text -