Error while trying to run for first time

68 views
Skip to first unread message

Saumya Ranjan Sahu

unread,
Apr 14, 2014, 9:06:26 AM4/14/14
to fighting-l...@googlegroups.com
Hi 

I am trying this tool for the first time and I get the following errors when I run the sample program:

       String testPageUrl = "http://google.com/";
       WebPage webPage = new WebPage(driver);
       FightingLayoutBugs flb = new FightingLayoutBugs();


Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/httpclient/HttpConnectionManager
at com.googlecode.fightinglayoutbugs.FightingLayoutBugs.<init>(FightingLayoutBugs.java:70)
at TestLayout.main(TestLayout.java:23)
Caused by: java.lang.ClassNotFoundException: org.apache.commons.httpclient.HttpConnectionManager
at java.net.URLClassLoader$1.run(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 2 more


Can you please tell me what's going wrong here ( or do I miss any Jar to include ? )

Note: I have included, 
fighting-layout-bugs-0.5.jar and selenium-server-standalone-2.39.0.jar in my project.

Thanks in advance!
Saumya.

Michael Tamm

unread,
Apr 14, 2014, 2:16:43 PM4/14/14
to fighting-layout-bugs
Hi,

you definitely need commons-httpclient-3.1.jar

My advice here would be, to use Ivy, Maven, or Gradle to manage the dependencies for your test project, because you will need some more jar files (depending on the WebDriver implementation you are going to use.)

Kind regards, Michael


--
You received this message because you are subscribed to the Google Groups "Fighting Layout Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fighting-layout-...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages