Originally posted by Varun Nayudu: Is there a way to set classpath through a program in a web application or no.Please if there is then can you specify how.
If you want to change the JVM classpath so that every classloader can refer to, well properly "no". I've never tried that before.
But if you want to dynamically load a new class which is not in the current classpath, then yes, you can do it. All you need to do is to create a new classloader instance point to the classpath location of the class, then load that class with your new classloader.
“Everything should be as simple as it is, but not simpler.” Albert Einstein
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