Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Wont let me import ApplicationContext

 
David Mbura
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI guys
I just installed spring 2.5,and spring ide.for some reason ,when i want to import ApplicationContext and ClassPathXmlApplicationContext in the main class ,it says i should create classes for them (ApplicationContext and ClassPathXmlApplicationContext).I am using eclipse ,jdk 1.6.
Thank you in advance
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is it a Spring project?
 
David Mbura
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yes it is a spring project.Seems like it cant recognize the packages (org.springframework.context.ApplicationContext;
org.springframework.context.support.ClassPathXmlApplicationContext;)
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did you add the Spring Nature to your projects? Or is it set to be a Spring project?

Sounds totally like a classpath issue. Your classpath isn't pointing to the Spring jar files.

Mark
 
David Mbura
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i use Eclipse and then added spring IDE through Eclipes update manager.It is all set,under spring project but i wonder why it cant find the spring jar?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic