ErrorOccuredDuringInitializationofbootlayer I keep getting this error when I run my test:
Error occurred during initialization of boot layer java.lang
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.