• Post Reply Bookmark Topic Watch Topic
  • New Topic

NoClassDefFoundError in spring example  RSS feed

 
sam liya
Ranch Hand
Posts: 1274
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
this is my main class



this is my beanclass



this is xml file



when i run the application it givesme bellow error

 
Vijitha Kumara
Bartender
Posts: 4002
42
Chrome Fedora Hibernate
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It is a CNF so you need to check what contains the classpath from where you execute this code unless you explicitly set the classpath. You could do the latter and see what happens ("java -cp <path to the classes/jars> MainClass")
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!