Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
By: Emiley J. Printer Friendly Format
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.
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
Subscribe to Tutorials
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
Archived Comments
1. thanks for this pertinent remark.
View Tutorial By: mohammed at 2009-02-21 05:43:11
2. Muchas Gracias, me ha servido de mucho el aporte.<
View Tutorial By: Juan Carlos at 2009-03-25 18:11:37
3. Thanks! It worked fine for me.
View Tutorial By: John Franklin at 2009-04-02 10:37:44
4. Thanks a lot.
View Tutorial By: Nirwana at 2009-04-24 05:17:10
5. Thanks,It's perfect solution,I solved my probleam
View Tutorial By: Suryaprakash Raghuwanshi at 2009-07-04 19:06:24
6. sample program exception handling
View Tutorial By: priya at 2009-09-10 05:40:29
7. I was using commons-logging-1.0.4.jar previously,
View Tutorial By: Pradeep at 2009-09-29 06:39:21
8. thanks. worked.
View Tutorial By: che at 2010-03-10 11:29:10
9. Hello, I am working with the JFreeChart software w
View Tutorial By: Dattasmita at 2010-07-22 07:29:50
10. great it worked for me too...
thanks
View Tutorial By: ReddyRocks at 2010-09-14 22:06:18
11. Thanks :)
View Tutorial By: Soorej at 2010-11-23 23:43:27
12. Excellent. I got stuck in a huge project and was f
View Tutorial By: Rahul Tiwari at 2010-12-08 22:40:29
13. thanks bro it worked for me ....keep it up.
View Tutorial By: azhar at 2010-12-27 00:44:36
14. nice . it works
View Tutorial By: jay at 2011-01-20 03:02:28
15. I have compiled by keeping all the points in mind
View Tutorial By: Sweety at 2011-03-09 22:29:18
16. thank you so much. i've been fixing this problem o
View Tutorial By: yo at 2011-06-05 13:25:37
17. Worked perfectly. Thanks!
View Tutorial By: Jake at 2011-08-10 21:46:58
18. Bravo !!
Le jar qui me fallait &Ati
View Tutorial By: Zoulikha Heddadji at 2011-08-12 16:13:23
19. Wow, Problem resolved ....
View Tutorial By: Muhammad Farrukh at 2011-08-29 21:02:09
20. Thanks..it worked!!
View Tutorial By: Chethan at 2011-09-06 14:59:14
21. Unibiapaype
View Tutorial By: Unibiapaype at 2011-10-06 19:25:34
22. As soon as I added common-logging-1.1.1.jar My all
View Tutorial By: shrawan kumar at 2011-10-30 12:06:50
23. Thanks for the post !
View Tutorial By: percy at 2011-11-24 08:56:23
24. Thanks.
View Tutorial By: Joe at 2011-12-07 11:41:14
25. Very handy. Thanks.
View Tutorial By: Roel at 2012-02-17 16:54:23
26. Hi,.
No Change yaar, Im still getting the s
View Tutorial By: Dinesh Rajendiran at 2012-03-23 05:19:06
27. Hello,
I am still getting the below
View Tutorial By: pavithra at 2012-03-25 19:33:38
28. Thanks.. worked perfectly :)
View Tutorial By: DJ at 2012-04-05 19:40:43
29. Thanks bro...you save me from a great problem...ve
View Tutorial By: Tishan at 2012-07-09 09:14:07
30. Thanks, After adding commons jar file it is workin
View Tutorial By: Arvind at 2012-09-17 07:42:34
31. Thanks so much!
View Tutorial By: Viet at 2013-01-15 15:02:52
32. Jamestox
View Tutorial By: Jamestox at 2017-04-26 01:05:16
33. Thanks a bunch forr sharing this with all folks yo
View Tutorial By: revelations 2012 gameplay at 2017-05-13 07:13:59
34. RichardCemo
View Tutorial By: RichardCemo at 2017-05-29 05:12:45
35. I know this if off topic but I'm looking int start
View Tutorial By: swedish world cup team at 2017-06-05 16:55:46
36. CurtisQuef
View Tutorial By: CurtisQuef at 2017-06-15 23:04:34
37. RichardCemo
View Tutorial By: RichardCemo at 2017-06-20 08:53:52
38. RichardCemo
View Tutorial By: RichardCemo at 2017-06-28 11:54:57
39. Thomasmi
View Tutorial By: Thomasmi at 2017-07-02 14:06:46
40. Thomasmi
View Tutorial By: Thomasmi at 2017-07-26 21:34:40
41. MerlinMub
View Tutorial By: MerlinMub at 2017-08-03 12:13:46
42. RichardCemo
View Tutorial By: RichardCemo at 2017-08-16 12:56:26
43. RichardCemo
View Tutorial By: RichardCemo at 2017-08-17 15:31:28