score:0
i had similar issue, the problem i faced was i added the selenium-server-standalone-3.141.59.jar under modulepath instead it should be under classpath
so select classpath via (project -> properties -> java bbuild path -> libraries) add the downloaded latest jar
after adding it must be something like this
and an appropriate driver for browser has to be downloaded for me i checked and downloaded the same version of chrome for chrome driver and added in the c:\program files\java
and following is the code that worked fine for me
public class testuiaautomation {
public static void main(string[] args) {
system.out.println("jai ganesha");
try {
system.setproperty("webdriver.chrome.driver", "c:\\program files\\java\\chromedriver.exe");
system.out.println(system.getproperty("webdriver.chrome.driver"));
chromeoptions chromeoptions = new chromeoptions();
chromeoptions.addarguments("no-sandbox");
chromeoptions.addarguments("--test-type");
chromeoptions.addarguments("disable-extensions");
chromeoptions.addarguments("--start-maximized");
webdriver driver = new chromedriver(chromeoptions);
driver.get("https://www.google.com");
system.out.println("google is selected");
} catch (exception e) {
system.err.println(e);
}
}
}
for reference
score:0
just delete module-info.java from project and its solves the issue.
score:2
i had the same error before because i use the default package.
and i solved the problem in this way: right-click the project - properties - java build path - move the class from modulepath to classpath
and it worked!
score:15
the error occurs because of you add your jar library files to modulepath instead of classpath. you have to add jar files to your classpath. if you already add jar files to modlepath you have to remove from there and add jar files to classpath, there is the steps:
1] right click on your project name in eclipse ide
2] click on properties -> java build path -> click library tab .the you get the window like this:
3] expand modulepath and select all jar files and remove it :look the picture below:
4] after that click on classpath ->and click the button 'addjar' and select the jar files ,your are done. look the picture below for clarification;
5] after adding jars files in classpath it looks like this:
Source: stackoverflow.com
Related Query
- Error occurred during initialization of boot layer
- Error occurred during initialization of boot layer - Eclipse Java
- Error occurred during initialization of boot layer : Unable to derive module descriptor error with Selenium and java
- Error occurred during initialization of boot layer -java
- Error occurred during initialization of boot layer java.lang.module.FindException executing Selenium tests using TestNG and Java 12 through Eclipse
- Error occurred during initialization of boot layer - Eclips 2020-06
- Java - Eclipe IDE error - Error occurred during initialization of boot layer
- Error occurred during initialization of boot layer java.lang.module.FindException: Module javafx.controls not found
- Spring Error occurred during initialization of boot layer In Eclipse
- Eclipse and Maven: Error occured during initialization of boot layer
- How can I resolve this error. Using rest assured & eclipse :Error occurred during initialization of boot layer java.lang.module.FindException:
- Fixing the "Error occurred during initialization of boot layer" error
- Error occurred during initialization of VM (java/lang/NoClassDefFoundError: java/lang/Object)
- Eclipse error occurred during Repository registry initialization
- Eclipse: Error occurred during initialization of VM
- "Error occurred during initialization of boot layer" happened when I tried to add a external jar to the project in Eclispe
- Error occurred during initialization of VM: java.lang.UnsatisfiedLinkError: java.lang.Class.desiredAssertionStatus0(Ljava/lang/Class;)
- Error occurred during initialization of VM (java.lang.StackOverflowError) in Android
- “Error occurred during initialization of VM; Could not reserve enough space for object heap” using -Xmx3G
- JUnit4 + Eclipse "An internal error occurred during Launching"
- An internal error occurred during: "Updating indexes".Java heap space during eclipse start up?
- An internal error occurred during "Initializing Java Tooling." in Eclipse on startup
- TestNG An internal error occurred during launching
- Error occured during initialization of VM, Could not reserve enough space for object heap - Spring Tool Suite?
- Eclipse: An internal error occurred during "Contacting Software Sites"
- how to resolve "ssh error occurred during unpacking on the remote end: unpack-objects abnormal exit" in eclipse
- An internal error occurred during launching testng in eclipse
- I tried creating a new project in eclipse in Ubuntu 20.04 but it gives me this error Errors occurred during the build
- FDT: An internal error occurred during debugging
- How to close a part when error occurs during initialization in eclipse e4 rcp?
More Query from same tag
- Best Java IDE for power consumption
- Debug Pylons application through Eclipse
- how to update eclipse 3.5.2 to eclipse 3.6.2 for latest android?
- google play services lib... cannot import com.google.android.gms.map (using eclipse)
- Unable to debug linux using eclipse
- How to set background image as header with logo and navigation bar?
- Eclipse + Perforce: Is it possible to avoid interrupting a build to check out a file?
- Trouble adding a tools dependency with Gradle for LibGDX
- Android apps failed to launch after updating Eclipse
- how to fix "Failed to write core dump. Core dumps have been disabled" error while running java
- Looking for an automated UI tester tool for SWT (with Eclipse RCP)
- Eclipse LogCat not keeping text
- Push_back on a vector of array of char
- How do I "install" a log4j bundle?
- how can i resolve-oracle-11g-xe using eclipse
- Why sysout won't work?
- show dialog in rcp 4 eclipse
- Program Not Creating File. What is Wrong?
- How to add Thymleaf Snippets to Eclipse IDE?
- How to update java on macOS Sierra 10.12
- Change in perspective name not appearing
- How to programmatically "Show in Project Explorer"
- Eclipse - Failed to create the java virtual machine
- Eclipse Groovy and autocompletion
- How do I convert my Eclipse project to an earlier Java version?
- P2 Garbage Collector not deleting plugins
- Eclipse guide for beginners
- file.delete() returning false even file is writable
- Ubuntu 12.10 : Eclipse closes automatically
- Where did the Log4j Log Output Go?