简体   繁体   English

终止的Java应用程序javaw.exe蚀

[英]terminated java application javaw.exe eclipse

I created a simple script of opening a webpage using selenium tool. 我创建了一个使用硒工具打开网页的简单脚本。 and my program is terminated without even opening the browser. 并且我的程序甚至没有打开浏览器就被终止。 I have attached all the relevant jar files and set the JAVA path too. 我已经附加了所有相关的jar文件,并设置了JAVA路径。

在此处输入图片说明

Here's what you need to do: 这是您需要做的:

  1. Change "Firefoxdriver driver" to "Webdriver driver" in line no 9 在第9行将“ Firefoxdriver driver”更改为“ Webdriver driver”
  2. You can remove geckodriver.exe from the external jars. 您可以从外部jar中删除geckodriver.exe。
  3. Copy the geckodriver.exe to a folder in C: drive. 将geckodriver.exe复制到C:驱动器中的文件夹中。
  4. Ensure you are providing the correct path of gecko driver. 确保您提供的壁虎驱动程序的正确路径。
  5. The driver name should be "gecko driver.exe" 驱动程序名称应为“ gecko driver.exe”

Let me know if this works for you. 让我知道这是否适合您。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM