--
You received this message because you are subscribed to the Google Groups "Geb User Mailing List" group.
To unsubscribe from this group and stop receiving emails from it, send an email to geb-user+u...@googlegroups.com.
To post to this group, send email to geb-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/geb-user/94dcf964-a3a4-4443-81a2-e141a4b015ec%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
You need more Geb modules in your classpath. If you're a masochist then you can have a look at the pom of geb-core and work out which dependencies it has, there might be some that are transitive. Otherwise use a build system to resolve your dependencies. I personally prefer Gradle but for the purpose of resolving deps Maven will do just fine. If this thing will never get serious and will stay a script forever then your third choice might be using Groovy's @Grab annotation(s).
On Tuesday, 7 June 2016, Sean Lanter <seanl...@gmail.com> wrote:
I have a 2-line script "example.groovy" that does nothing more than create a default Browser:--
import geb.Browser
def browser = new Browser()
When I run it as follows:
groovy -cp geb-core-0.13.1.jar:selenium-server-standalone-2.53.0.jar:. example.groovy
this is what comes back:
Caught: java.lang.NoClassDefFoundError: geb/error/UnableToLoadException
java.lang.NoClassDefFoundError: geb/error/UnableToLoadException
at geb.Browser.<init>(Browser.groovy:58)
at example.run(example.groovy:2)
The script and the two jars file are all in the same directory.
I am certain I am missing something obvious... Can someone point out what I am overlooking?
TIA!
You received this message because you are subscribed to the Google Groups "Geb User Mailing List" group.
To unsubscribe from this group and stop receiving emails from it, send an email to geb-user+unsubscribe@googlegroups.com.
You need more Geb modules in your classpath. If you're a masochist then you can have a look at the pom of geb-core and work out which dependencies it has, there might be some that are transitive. Otherwise use a build system to resolve your dependencies. I personally prefer Gradle but for the purpose of resolving deps Maven will do just fine. If this thing will never get serious and will stay a script forever then your third choice might be using Groovy's @Grab annotation(s).
On Tuesday, 7 June 2016, Sean Lanter <seanl...@gmail.com> wrote:
I have a 2-line script "example.groovy" that does nothing more than create a default Browser:--
import geb.Browser
def browser = new Browser()
When I run it as follows:
groovy -cp geb-core-0.13.1.jar:selenium-server-standalone-2.53.0.jar:. example.groovy
this is what comes back:
Caught: java.lang.NoClassDefFoundError: geb/error/UnableToLoadException
java.lang.NoClassDefFoundError: geb/error/UnableToLoadException
at geb.Browser.<init>(Browser.groovy:58)
at example.run(example.groovy:2)
The script and the two jars file are all in the same directory.
I am certain I am missing something obvious... Can someone point out what I am overlooking?
TIA!
You received this message because you are subscribed to the Google Groups "Geb User Mailing List" group.
To unsubscribe from this group and stop receiving emails from it, send an email to geb-user+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/geb-user/3fe5318a-4cff-40d7-8742-9304de69ed7f%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to geb-user+u...@googlegroups.com.
To post to this group, send email to geb-...@googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Geb User Mailing List" group.
To unsubscribe from this group and stop receiving emails from it, send an email to geb-user+unsubscribe@googlegroups.com.
To post to this group, send email to geb-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/geb-user/f474ced8-36da-442d-aaf1-3f11e4a284ec%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to geb-user+u...@googlegroups.com.
To post to this group, send email to geb-...@googlegroups.com.