Loading classes from a jar which are not in Classpath
Hi all
I have an assigment where in i have to browse thru a directory and load classes from that directory and read a common variable from them.I am able to do it for classes and jars which are in the CLASSPATH and also for classes which are not in the CLASSPATH(using URLCLassLoaders) but I am unable to load classes from a jar file which is not in the ClassPath .Can anyone please suggest me on this issue.Thanks..Bye
[432 byte] By [
ravi2082a] at [2007-10-1 14:37:58]

I have got the custom ClassLoader for a jar and for a file.I am able to load all classes in a jar or single class file in standalone mode ...but when i use the methods from a jsp the loading process is failing due to dependencies in those classes.
When I use the methods from a jsp .I get some
java.lang.NoClassDefFoundError: javax/mail/MessagingException for the first class
I dont have the source of the class file thats why I am not able analyze how the class is dependent on the above error.I have put every jar file in CLASSPATH but its still the same result with a jsp but in a stand alone mode its working perfectly fine.
Please help in this regard.
Bye
Ravi