NoClassDefFoundError: cucumber/runtime/io/ResourceLoader

2,732 views
Skip to first unread message

Dean Schulze

unread,
Aug 13, 2013, 6:52:20 PM8/13/13
to cu...@googlegroups.com
I've got about the simplest Cucumber-jvm project you can have.  When I run it I get

java.lang.NoClassDefFoundError: cucumber/runtime/io/ResourceLoader
Do I need a different version of cucumber-jvm? 

Here's what's in my pom.xml:

<modelVersion>4.0.0</modelVersion>
<groupId>com.icdt</groupId>
<artifactId>selenium-example</artifactId>
<version>0.0.1-SNAPSHOT</version>

<dependencies>
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-java</artifactId>
<version>2.33.0</version>
</dependency>
<!--
-->
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.11</version>
</dependency>
<dependency>
<groupId>info.cukes</groupId>
<artifactId>cucumber-java</artifactId>
<version>1.1.4-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>info.cukes</groupId>
<artifactId>cucumber-junit</artifactId>
<version>1.1.4-SNAPSHOT</version>
</dependency>
</dependencies>
</project>


Aslak Hellesøy

unread,
Aug 14, 2013, 1:40:28 AM8/14/13
to cu...@googlegroups.com

On Tuesday, 13 August 2013 at 23:52, Dean Schulze wrote:

I've got about the simplest Cucumber-jvm project you can have.  When I run it I get

java.lang.NoClassDefFoundError: cucumber/runtime/io/ResourceLoader
Do I need a different version of cucumber-jvm? 

Try adding cucumber-java as well. 
--
-- Rules --
 
1) Please prefix the subject with [Ruby], [JVM] or [JS].
2) Please use interleaved answers http://en.wikipedia.org/wiki/Posting_style#Interleaved_style
3) If you have a question, don't reply to an existing message. Start a new topic instead.
 
You received this message because you are subscribed to the Google Groups Cukes group. To post to this group, send email to cu...@googlegroups.com. To unsubscribe from this group, send email to cukes+un...@googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/cukes?hl=en
---
You received this message because you are subscribed to the Google Groups "Cukes" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cukes+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Paolo Ambrosio

unread,
Aug 14, 2013, 1:46:20 AM8/14/13
to cu...@googlegroups.com
What happens if you use the released 1.1.4 instead of 1.1.4-SNAPSHOT?

cucumber-java depends on cucumber-core that should contain that class.

I would also use <scope>test</scope> for your test dependencies, but
the default compile scope should work as well.

I suggest you take a look at the Java Hello World Example:
https://github.com/cucumber/cucumber-jvm/blob/master/examples/java-helloworld/pom.xml


Paolo

Dean Schulze

unread,
Aug 14, 2013, 6:32:31 PM8/14/13
to cu...@googlegroups.com

Changing the version to 1.1.3 solved it.

aslak hellesoy

unread,
Aug 14, 2013, 6:36:14 PM8/14/13
to Cucumber Users
On Wed, Aug 14, 2013 at 11:32 PM, Dean Schulze <dean.w....@gmail.com> wrote:

Changing the version to 1.1.3 solved it.


1.1.4 is the latest version. We'd appreciate if you could help us find out if there is anything wrong with 1.1.4.

Aslak
 
Reply all
Reply to author
Forward
0 new messages