• 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
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Wont let me import ApplicationContext

 
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Is it a Spring project?
 
David Mbura
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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;)
 
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
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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
reply
    Bookmark Topic Watch Topic
  • New Topic