1. Test connection to a database/datasource using the classpath specified by the user. The classpath will be an absolute path like c:\...where the jar will be located.
I have the some question regarding that:
a. I can't set classpath at runtime, can i? b. How can I load jars at runtime to test connection and hence load the driver class? c. Is it possible to set the classpath temporarily with the one given by user? I guess using command line "set classpath" will not help, right? d. URLClassloader allows loading of jars but it accepts a URL as an argument and i assume i cant specify a location like "C:\.." in the URL. Am i right?
Please help. Any quick suggestions would be highly appreciated.