Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我下载了 watij 并试图让它在 Eclipse 中运行。我试过这个示例代码
WebSpec 规范 = new WebSpec().safari(); spec.safari().open("http://www.google.com");
并且 WebSpec 用红色下划线表示 WebSpec 无法解析为我认为这意味着某些内容尚未添加到我的项目中。 我右键单击我的 src 文件夹并添加 .jar 文件,然后将 webspec.jar 也添加到项目中
有没有我遗漏的步骤?
不要将 JAR 文件放在 src 文件夹中。它们不是源文件。
创建一个 lib 文件夹,将 JAR 文件放在那里,然后将它们添加到项目的构建路径中。