ClassNotFound: org.apache.commons.httpclient.HttpMethod

771 views
Skip to first unread message

Julia S.S

unread,
May 24, 2011, 5:48:14 AM5/24/11
to Fighting Layout Bugs
Hi,
I'm trying to set up a project following "How to get started" section.
I downloaded the source and built the jar with maven, set up an
eclipse project and copied and pasted the code from that section.
When I run it I get this error:
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/
commons/httpclient/HttpMethod
at
de.michaeltamm.fightinglayoutbugs.FightingLayoutBugs.<init>(FightingLayoutBugs.java:
52)

I downloaded httpclient jar from apache webpage and added the library
to the project and still get same error.

Thanks,
Julia

Nachiket Torwekar

unread,
May 28, 2011, 2:34:03 PM5/28/11
to hit...@gmail.com, fighting-l...@googlegroups.com
Hi,

Try the one attached.

Thanks and Regards,
Nachiket.

FightingLayoutBugs-1.0-SNAPSHOT.jar

Michael Tamm

unread,
May 29, 2011, 8:25:21 PM5/29/11
to fighting-l...@googlegroups.com, hit...@gmail.com
Hi Julia,

sorry for the late reply, I was on holiday ...

If you use Maven for your project, just copy all dependencies from


into your pom.xml

If you do not use Maven, please try out this jar file, which I just uploaded:


It contains the Fighting Layout Bugs classes as well as all needed dependencies (e.g. Selenium 2 classes and resources)

Kind regards, Michael


2011/5/24 Julia S.S <hit...@gmail.com>

Julia S.S.

unread,
Jun 6, 2011, 3:05:04 AM6/6/11
to Michael Tamm, fighting-l...@googlegroups.com
Hi,
I've posponed this because I dont have time right now but thanks to you both. I'll try ASAP

Regards,
Julia

Julia S.S.

unread,
Jun 9, 2011, 6:11:05 AM6/9/11
to Michael Tamm, fighting-l...@googlegroups.com
Thanks Michael,
That solved the issue :D (I'm not using maven btw)
Reply all
Reply to author
Forward
0 new messages