简体   繁体   中英

error occurred "java: cannot access java.util.function.Function class file for java.util.function.Function not found " in selenium

I am having the above issue once am running the code. I have changed my language level into 8 and added maven properties into the POM file. But still having this issue. Please help me to resolve this.

  • Yes as like above comment it's quite difficult to solve problem without any error log or code so if possible please add it.

  • Else where as per my experience i thought that it's occurred in case where your JDK dependency not bind properly with your project.

  • In such case you're not able to use that library inside your project. For that go inside "Project settings" inside your IDE and check dependency bind properly(like following image) or not if not then do it first.

在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM