This week's book giveaway is in the OCAJP forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide 1Z0-808 and have Jeanne Boyarsky & Scott Selikoff on-line! See this thread for details.
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