You must update the PATH variable to reference your JDK location before performing this task. For details, reference the Sun documentation at: http://java.sun.com/j2se/1.5.0/install-windows.html.
set CLASSPATH=<eclipse_install_directory>\plugins\org.junit4_4.3.1\junit.jar;<eclipse_install_directory>\plugins\org.hamcrest.core_1.3.0.v201303031735.jar;%OPEN_AGENT_HOME%\JTF\silktest-jtf-nodeps.jar;C:\myTests.jar
java org.junit.runner.JUnitCore <test class name>
package demo;
import org.junit.runner.RunWith;
import org.junit.runners.Suite.SuiteClasses;
import com.borland.silktest.jtf.SilkTestSuite;
@RunWith(SilkTestSuite.class)
@SuiteClasses({ MyTestClass1.class, MyTestClass2.class })
public class MyTestSuite {}
To run these test classes from the command line, type the following:
java org.junit.runner.JUnitCore demo.MyTestSuite