I am unable to execute selenium tests(JUNIT) from command line
my project folder path class file
C:\Users\CP042756\workspace\BLR_demo1\bin\com\analytics\logindash
File :LoginTest.class
my project folder path java file
C:\Users\CP042756\workspace\BLR_demo1\src\com\analytics\logindash
File:LoginTest.java
jar file folder: C:\jars\imp\selenium-2.45.0\libs
jar fiLe: junit-dep-4.11.jar
it runs properly in Eclipse
i want to run it in command line
i have tried the following commands from the command line
1)
java -cp C:\jars\imp\selenium-2.45.0\libs\junit-dep-4.11.jar:C:\Users\CP042756\workspace\BLR_demo1\bin\com\analytics\logindash org.junit.runner.JUnitCore LoginTest
Error:Could not find or load main class
2)java -cp C:\jars\imp\selenium-2.45.0\libs\junit-dep-4.11.jar org.junit.runner.JUnitCore LoginTest
Error:Could not find class:Login test Exception in thread main java.lang.noclassdefounderror
Please help,