开发者

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".

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜