I am not able to run cucumber feature files in ubuntu machine getting below error

Exception in thread "main" cucumber.runtime.CucumberException: Failed

to instantiate public

cucumber.runtime.java.JavaBackend(cucumber.runtime.io.ResourceLoader)

with [cucumber.runtime.io.MultiLoader@79efed2d] at

cucumber.runtime.Reflections.newInstance(Reflections.java:44) at

cucumber.runtime.Reflections.instantiateSubclasses(Reflections.java:30)

at cucumber.runtime.Runtime.loadBackends(Runtime.java:97) at

cucumber.runtime.Runtime.(Runtime.java:64) at

cucumber.api.cli.Main.run(Main.java:35) at

cucumber.api.cli.Main.main(Main.java:18) Caused by:

java.lang.reflect.InvocationTargetException at

sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

at

sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)

at

sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)

at java.lang.reflect.Constructor.newInstance(Constructor.java:423)

at cucumber.runtime.Reflections.newInstance(Reflections.java:41) ...

5 more Caused by: java.lang.NoSuchFieldError: INSTANCE at

cucumber.runtime.java.JavaBackend.(JavaBackend.java:65) ... 10

more...

Read More »

By: StackOverFlow - Wednesday, 14 March

Related Posts