• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Liutauras Vilda
  • Paul Clapham
Sheriffs:
  • paul wheaton
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Piet Souris
Bartenders:
  • Mike London

class not found exception

 
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi all,

while i am running my first spring application, after adding all jar file including commons-logging-1.1.jar files i am getting the class not found exception like bellow.



i am using eclipse galileo version.

Please suggest me any good solution.

Thanks,
Praneeth.

 
ranger
Posts: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
ClassNotFound means that that jar is not in your classpath. Are you getting this when running or when compiling. There will be a classpath set for the compiler, that is usually what you get when you add it to your IDE. And there is a classpath when you are running your application.

In you case, in that one scenario the jar file is not in your classpath.

Thanks

Mark
 
praneeth ram
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Mark, i resolved this problem. the mistake is i did not copy the jar files in the tomcat lib directory as it is the spring mvc web application.

Thank you Mark for the reply.

Thanks,
Praneeth.
 
reply
    Bookmark Topic Watch Topic
  • New Topic