This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Other Application Frameworks and the fly likes Class PathXml ApplicationContext Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Frameworks » Other Application Frameworks
Bookmark "Class PathXml ApplicationContext" Watch "Class PathXml ApplicationContext" New topic
Author

Class PathXml ApplicationContext

jacob deiter
Ranch Hand

Joined: Apr 02, 2008
Posts: 576
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

Joined: Mar 02, 2005
Posts: 580
Try this



Place the applicationcontext.xml, anywhere in your classpath.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Class PathXml ApplicationContext