This week's book giveaway is in the Java 9 forum.
We're giving away four copies of Java 9 Modularity: Patterns and Practices for Developing Maintainable Applications and have Sander Mak & Paul Bakker on-line!
See this thread for details.
Win a copy of Java 9 Modularity: Patterns and Practices for Developing Maintainable Applications this week in the Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Class PathXml ApplicationContext  RSS feed

 
jacob deiter
Ranch Hand
Posts: 587
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a standalone application using eclipse and spring 2.0,If I use

ApplicationContext ctx = new
ClassPathXmlApplicationContext("applicationContext.xml");

It says File not found.

where I should place the applicationcontext.xml file or
is there any way to specify the class path?
 
vidya sagar
Ranch Hand
Posts: 580
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try this



Place the applicationcontext.xml, anywhere in your classpath.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!