I am trying to setup my first Cucumber effort in Eclipse. I setup a basic feature file in the Features folder the way that the tutorial video suggested, but trying to execute as a cucumber feature, I get the following:
Exception in thread "main" java.lang.NoClassDefFoundError: gherkin/formatter/Formatter
at java.base/java.lang.ClassLoader.defineClass1(Native Method)
at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1016)
at java.base/java.security.SecureClassLoader.defineClass(SecureClassLoader.java:151)
at java.base/jdk.internal.loader.BuiltinClassLoader.defineClass(BuiltinClassLoader.java:821)
at java.base/jdk.internal.loader.BuiltinClassLoader.findClassOnClassPathOrNull(BuiltinClassLoader.java:719)
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClassOrNull(BuiltinClassLoader.java:642)
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:600)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
at cucumber.runtime.formatter.PluginFactory$1.<init>(PluginFactory.java:53)
at cucumber.runtime.formatter.PluginFactory.<clinit>(PluginFactory.java:52)
at cucumber.runtime.RuntimeOptions.<init>(RuntimeOptions.java:70)
at cucumber.api.cli.Main.run(Main.java:31)
at cucumber.api.cli.Main.main(Main.java:18)
Caused by: java.lang.ClassNotFoundException: gherkin.formatter.Formatter
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:602)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
... 14 more
I have followed all the steps listed by the tutorial video I am watching, but no success. I have the following installed:
Eclipse 2019-12, Java SE 13
I downloaded and installed all the jar files locally. I have read that the potential for conflicts can arise with a large number of jar files that could interfere with one another so I updated all my jar files to the latest versions. Still no help. I then eliminated installed jars one at a time and attempted to run again until I got down to the bare necessities. The issue still persists.
Here is a snippet of my setup:
Snapshot of my project in Eclipse
I'm open to any help that others can provide