Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

The package org.openqa.selenium is accessible from more than one module

I'm using:

  • Firefox 56.0.1
  • Selenium 3.6.0
  • Windows 10 home edition
  • Gecko Driver 0.19.0

The error message is

The package org.openqa.selenium is accessible from more than one module: client.combined, net.bytebuddy"

Screenshot of error

like image 938
Drew Resner Avatar asked Oct 19 '17 16:10

Drew Resner


People also ask

Is accessible from more than one module Eclipse?

Steps below helped me, Right click Eclipse project > Properties > Java Build Path. In Libraries tab, remove all the external jar files under Modulepath and add them under Classpath (you can just select all the jars and drag them under Classpath) Click Apply and Close.


Video Answer


2 Answers

This happens when you have added the external jars in the ModulePath.

Solution:

  1. Remove the external jars from the node "Modulepath".
  2. Select the node "Classpath" then add the external jars.
  3. Review that all the jars are under the node "Classpath".
like image 98
Kev Avatar answered Sep 21 '22 13:09

Kev


The problem is that you are adding Jar files to your Modulepath instead of Classpath. Go to Project->BuildPath->Config BuildPath->Remove Jars from Modulepath->then click on classpath->Add external selenium jar files.

click on the screenshot for more clarity

like image 44
user7420004 Avatar answered Sep 19 '22 13:09

user7420004