开发者

get watij to run

i downloaded watij and am trying to get it to run in eclipse. i tried this sample code

WebSpec spec = new WebSpec().safari(); spec.safari().open("http://www.google.com");

and WebSpec is underlined in red saying WebSpec cannot be resolved into a type I assume this means that something has not been added into my project.

I right clicked on my src folder and added the .jar files and then added webspec.jar to the project also

Are there any steps that I a开发者_JAVA百科m missing?


You don't put JAR files in your src folder. They are not source files.

Create a lib folder, put the JAR files there, and then add them to the project's build path.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜