Error occurred during initialization of boot layer java.lang.module.FindException executing Selenium tests using TestNG and Java 12 through Eclipse

后端 未结 3 734
逝去的感伤
逝去的感伤 2021-01-28 06:12

ErrorOccuredDuringInitializationofbootlayer I keep getting this error when I run my test:

Error occurred during initialization of boot layer java.lang

3条回答
  •  北海茫月
    2021-01-28 06:12

    To avoid this error, do not add TestNG library in the project or src folder. Try adding it into the package. To do so , follow the below mentioned procedure.

    Right click on the package, click Build Path->Configure Build Path, go to Libraries tab, select Classpath and click on Add Library to select TestNG.

提交回复
热议问题