java.lang.module.findexception:无法为Cucumber-Core-7.3.4.jar得出模块描述符

发布于 2025-02-06 01:59:26 字数 992 浏览 1 评论 0原文

我最初创建了一个普通的Java项目,遵循了上述步骤在这里href =“ https://www.edureka.co/blog/cucumber-selenium-tutorial/” rel =“ nofollow noreferrer”>在这里 但是不幸的是,我的项目不起作用,我在上述错误中遇到了此错误。我没有达到关于整合硒的谈论的步骤。

只是提到我使用了JAR文件的所有最新版本,如下所示。

我也有其他各种问题,当我在Internet上搜索时,每个人都在谈论pom.xml文件中的配置。但是这个文件来自Maven项目!因此,我将项目转换为一个Maven项目。但这也无法解决我的问题,因此我“削弱了卑鄙的性质”。即使在那之后也没有运气。 目前,这是一个Maven项目,但是当我关注它给我带来了主题错误。

这就是我的软件包资源管理器的外观: -

”在此处输入图像描述

I initially created a plain Java project that followed the steps mentioned here and here but unfortunately, my project didn't work, I am getting this above error. I have not reached the step where it talks about integrating selenium.

Just to mention I used all the latest versions of the jar files as shown below.

enter image description here

I also got other various problems also, and to resolve them when I searched on the internet everyone was talking about the configuration inside the pom.xml file. But this file comes in the Maven project! so I converted my project to a Maven project. But that too didn't resolve my issues so I "disabled the Maven nature". No luck even after that.
currently, it is a Maven project but when I am following this step it is giving me the subject error.

This is how my package explorer look like:-

enter image description here

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

回眸一遍 2025-02-13 01:59:26

诀窍是从有效的东西开始小。然后在每次更改后检查是否仍然有效。这将有助于您了解每个组件和更改所做的事情,而不会使您不知所措。

不幸的是,您正在遵循一次完成很多工作的教程。尝试分解一点。首先了解Maven,并使用普通Java和单位测试。然后了解日食如何与Maven项目一起工作。然后将黄瓜与maven一起使用,然后添加硒。

这看起来似乎要做更多的工作,但是它更快了,因为您只需要一次解决一个问题即可。

我没有任何毛刺或食物的教程,但是您使用的是cucumber:

https://docs.cucumber.io/docs/guides/10-minute-tutorial/

The trick is to start small with something working. And then after each change check if it still works. This will help you build an understanding of what each component and change does without overwhelming you.

Unfortunately you are following tutorials that do a whole lot at once. Try to break this down a bit. First learn about Maven, with plain Java and maybe a unit test. Then learn about how Eclipse works with Maven projects. Then use Cucumber with Maven, then add Selenium.

This may seem like a lot more work but it is faster because you'll only have to solve one problem at a time.

I don't have any tutorials for Maven or Eclipse but for Cucumber you use:

https://docs.cucumber.io/docs/guides/10-minute-tutorial/

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文