This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
I am getting the Class Not Found Exception when i tried to load a particular class based on the property value.Please find the details.
app.properties Controller.java At line 3 of Controller.java I am gettting
Class Not Found Exception.
I have included /WEB-INF/classes directory in the classpath but unable to resolve the problem.
But if I modify the code as mentioned below and instead of supplying the property value to the class loader, give the class name manually, then the code is working fine
Controller.java Please suggest me in understanding the above problem.
Thanks in advance.
I'd also question your methodology: there are better ways to implement similar functionality (DI/IoC via Spring or similar come to mind immediately).
Joined: Sep 12, 2006
This is a practice assignment for MVC design , where we were told not to use Any popular design techniques and frameworks.
William, thanks for your post. I will trim the property value and test the application.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
subject: Class Not Found Exception on Loading a Class from a Property file