Error trying to test Environment Setup
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   John_Abney
Posted On:   Friday, February 16, 2007 04:45 PM

I am trying to setup the JUnit software and I can't seem to get the AllTests file to compile:

I have Junit version 4.2, JAVA 5 Update 11, and Windows XP Pro SP2.

The install path I have is c:Junit4.2

Here is my CLASSPATH environment settings:
%CLASSPATH%;C:Junit4.2Junit4.2Junit-4.2.jar;C:Junit4.2Junit4.2;C:Junit4.2

When I try to run the test for the classpath setup I get this error:

c:>java junit.textui.TestRunner junit.samples.AllTests
ERROR: java.lang.ClassCastException: class junit.samples.AllTests

Any idea on why I am getting this error?

About | Sitemap | Contact