Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
By: Emiley J.
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
As always the NoClassDefFoundError is caused due to classpath problems or missing jar files.
In this case, This is caused when the commons-logging-1.1.1.jar file is not in your path.
Follow these steps to solve this problem.
- Download the commons-logging-1.1.1.jar file or later version from the following url.
- http://commons.apache.org/proper/commons-logging/download_logging.cgi (download and extract the jar files in your computer)
- Add the commons-logging-1.1.1.jar file to your 'lib' folder in your project if you are using an IDE like netbeans or add it to your classpth if you are doing it manually
- Rebuild your project and run.
Archived Comments
1. RichardCemo
View Tutorial By: RichardCemo at 2017-08-17 15:31:28
2. RichardCemo
View Tutorial By: RichardCemo at 2017-08-16 12:56:26
3. MerlinMub
View Tutorial By: MerlinMub at 2017-08-03 12:13:46
4. Thomasmi
View Tutorial By: Thomasmi at 2017-07-26 21:34:40
5. Thomasmi
View Tutorial By: Thomasmi at 2017-07-02 14:06:46
6. RichardCemo
View Tutorial By: RichardCemo at 2017-06-28 11:54:57
7. RichardCemo
View Tutorial By: RichardCemo at 2017-06-20 08:53:52
8. CurtisQuef
View Tutorial By: CurtisQuef at 2017-06-15 23:04:34
9. I know this if off topic but I'm looking int starting my
own blog and was curious what all i
View Tutorial By: swedish world cup team at 2017-06-05 16:55:46
10. RichardCemo
View Tutorial By: RichardCemo at 2017-05-29 05:12:45
11. Thanks a bunch forr sharing this with all folks you actually understand what
you are speakin
View Tutorial By: revelations 2012 gameplay at 2017-05-13 07:13:59
12. Jamestox
View Tutorial By: Jamestox at 2017-04-26 01:05:16
13. Thanks so much!
View Tutorial By: Viet at 2013-01-15 15:02:52
14. Thanks, After adding commons jar file it is working well....
View Tutorial By: Arvind at 2012-09-17 07:42:34
15. Thanks bro...you save me from a great problem...very appreciated for your post..Plz keep it up
View Tutorial By: Tishan at 2012-07-09 09:14:07
16. Thanks.. worked perfectly :)
View Tutorial By: DJ at 2012-04-05 19:40:43
17. Hello,
I am still getting the below error. Any suggestions ??
View Tutorial By: pavithra at 2012-03-25 19:33:38
18. Hi,.
No Change yaar, Im still getting the same problem. What to do? Below is the exception th
View Tutorial By: Dinesh Rajendiran at 2012-03-23 05:19:06
19. Very handy. Thanks.
View Tutorial By: Roel at 2012-02-17 16:54:23
20. Thanks.
View Tutorial By: Joe at 2011-12-07 11:41:14
21. Thanks for the post !
View Tutorial By: percy at 2011-11-24 08:56:23
22. As soon as I added common-logging-1.1.1.jar My all error has resolved.
Thanks alot fo
View Tutorial By: shrawan kumar at 2011-10-30 12:06:50
23. Unibiapaype
View Tutorial By: Unibiapaype at 2011-10-06 19:25:34
24. Thanks..it worked!!
View Tutorial By: Chethan at 2011-09-06 14:59:14
25. Wow, Problem resolved ....
View Tutorial By: Muhammad Farrukh at 2011-08-29 21:02:09
26. Bravo !!
Le jar qui me fallait à cette erreur java-spring tenace!!
View Tutorial By: Zoulikha Heddadji at 2011-08-12 16:13:23
27. Worked perfectly. Thanks!
View Tutorial By: Jake at 2011-08-10 21:46:58
28. thank you so much. i've been fixing this problem over and over again and end up to delete the projec
View Tutorial By: yo at 2011-06-05 13:25:37
29. I have compiled by keeping all the points in mind n the program got successfully compiled but during
View Tutorial By: Sweety at 2011-03-09 22:29:18
30. nice . it works
View Tutorial By: jay at 2011-01-20 03:02:28
31. thanks bro it worked for me ....keep it up.
View Tutorial By: azhar at 2010-12-27 00:44:36
32. Excellent. I got stuck in a huge project and was forced to use command line option, adding the requi
View Tutorial By: Rahul Tiwari at 2010-12-08 22:40:29
33. Thanks :)
View Tutorial By: Soorej at 2010-11-23 23:43:27
34. great it worked for me too...
thanks
View Tutorial By: ReddyRocks at 2010-09-14 22:06:18
35. Hello, I am working with the JFreeChart software where i caught up with following exception while Ex
View Tutorial By: Dattasmita at 2010-07-22 07:29:50
36. thanks. worked.
View Tutorial By: che at 2010-03-10 11:29:10
37. I was using commons-logging-1.0.4.jar previously, but when I changed it to version 1.1.1.jar. It doe
View Tutorial By: Pradeep at 2009-09-29 06:39:21
38. sample program exception handling
View Tutorial By: priya at 2009-09-10 05:40:29
39. Thanks,It's perfect solution,I solved my probleam
View Tutorial By: Suryaprakash Raghuwanshi at 2009-07-04 19:06:24
40. Thanks a lot.
View Tutorial By: Nirwana at 2009-04-24 05:17:10
41. Thanks! It worked fine for me.
View Tutorial By: John Franklin at 2009-04-02 10:37:44
42. Muchas Gracias, me ha servido de mucho el aporte.
Saludos.
View Tutorial By: Juan Carlos at 2009-03-25 18:11:37
43. thanks for this pertinent remark.
View Tutorial By: mohammed at 2009-02-21 05:43:11
Comment on this tutorial
- Data Science
- Android
- AJAX
- ASP.net
- C
- C++
- C#
- Cocoa
- Cloud Computing
- HTML5
- Java
- Javascript
- JSF
- JSP
- J2ME
- Java Beans
- EJB
- JDBC
- Linux
- Mac OS X
- iPhone
- MySQL
- Office 365
- Perl
- PHP
- Python
- Ruby
- VB.net
- Hibernate
- Struts
- SAP
- Trends
- Tech Reviews
- WebServices
- XML
- Certification
- Interview
categories
Related Tutorials
Program using concept of byte long short and int in java
Update contents of a file within a jar file
Tomcat and httpd configured in port 8080 and 80
Count number of vowels, consonants and digits in a String in Java
Student marks calculation program in Java
Calculate gross salary in Java
Calculate average sale of the week in Java
Vector in Java - Sample Program
MultiLevel Inheritance sample in Java