Q:

running Selenium test case on console throwing lot of errors

Looks like a silly question but I am really stuck and any help would be appreciated . 
I exported a selenium test case as Junit 4 Web driver and I ran it using eclipse it runs properly and does all the appropriate task intended to do . But if I try running it using console it throws loads of errors . 
Something like : 

editCampaign.java:318: cannot find symbol
  symbol  : variable By
  location: class org.openqa.selenium.example.editCampaign 
                         driver.findElement(By.id("submit")).click();

A:

It looks like you simply missing web driver libraries in classpath (class 'By' in your case), try to add 
-classpath librariesDirectory 

to your execution command

