I am using selenium with testng and maven.Caused by: java.lang.RuntimeException: java.lang.reflect.InaccessibleObjectException: Unable to make native jdk.internal.reflect.ConstantPool java.lang.Class.getConstantPool() accessible: module java.base does not "opens java.lang" to unnamed module @4387b79e.at Runner.TestRunner.feature(TestRunner.java:47). If anymore details required please ping me. I am not able to start the project. Earlier it gave the exception class not found for which I added,
Unable to make native jdk.internal.reflect.ConstantPool java.lang.Class.getConstantPool() accessible: module java.base does not "opens java.lang" to unnamed module @4387b79e
<dependency>
<groupId>xerces</groupId>
<artifactId>xerces</artifactId>
<version>2.4.0</version>
</dependency>
<dependency>
<groupId>xerces</groupId>
<artifactId>xercesImpl</artifactId>
<version>2.11.0</version>
</dependency>