Home > Blockchain >  Error occurred during initialization of boot layer java.lang.module.FindException: Module processed.
Error occurred during initialization of boot layer java.lang.module.FindException: Module processed.

Time:12-14

package selenium;

import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;

public class FirstSeleniumProject {

    public static void main(String[] args) {
        // TODO Auto-generated method stub
        
        System.setProperty("webdriver.chrome.driver", "C:\\Users\\amar\\Documents\\chromedriver\\chromedriver.exe");
        WebDriver chrome = new ChromeDriver();
        
        chrome.get("https://www.google.com");

    }

}

Very first program and I am getting this error.

I installed TestNG per some recommendations. When that did not work, I removed the https:// from the link and it gave me the following error:

Error occurred during initialization of boot layer java.lang.module.FindException: Module processed.async.http.client not found, required by org.seleniumhq.selenium.remote_driver

CodePudding user response:

I was able to fix the issue by deleting all the selenium jar files from the modulepath and adding them all to the classpath instead.

CodePudding user response:

The error for me was the java version. While making the project make sure you choose java 1.8 (or maybe lower).

And if you are using selenium zip file to add build path, make sure you add the lib folder separately

  • Related