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

huangapple go评论87阅读模式
英文:

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

问题

我在运行代码时遇到了上述问题。我已将语言级别更改为8,并将Maven属性添加到了POM文件中。但仍然存在这个问题。请帮我解决这个问题。

英文:

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.

答案1

得分: 1

  • 是的,就像上面的评论一样,如果没有任何错误日志或代码,解决这个问题会非常困难,如果可能的话,请添加进来。

  • 另外根据我的经验,我认为这可能发生在您的JDK依赖项与项目没有正确绑定的情况下。

  • 在这种情况下,您将无法在项目内部使用该库。为此,请进入您的IDE的“项目设置”并检查依赖项是否已正确绑定(如下图所示),如果没有,请首先进行绑定。

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

英文:
  • 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.

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

huangapple
  • 本文由 发表于 2020年9月15日 16:01:58
  • 转载请务必保留本文链接:https://go.coder-hub.com/63897581.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定