WebDriver Selenium API: error running compiled .jar file
I finished writing my test for FirefoxDriver, and compiled to a runnable jar packaging all the required libraries into the single test.jar file.
while running java Tester.jar I get the following error:
Exception in thread "main"
Could not find the main class: Tester.jar
but Tester.java has a main class.
How to fix this ?开发者_Go百科
Try running it with java -jar "Tester.jar".
精彩评论