You must update the PATH variable to reference your JDK location before performing this task. For additional information, see JDK Installation for Microsoft Windows.
%OPEN_AGENT_HOME%\SVLabConnector\SVLabClient\lib\*
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.jarIf you are using service virtualization, the classpath should look similar to the following:
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;%OPEN_AGENT_HOME%\SVLabConnector\SVLabClient\lib\*;
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