aspose file tools*
The moose likes Java in General and the fly likes Getting Methods using URLClassLoader Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Getting Methods using URLClassLoader" Watch "Getting Methods using URLClassLoader" New topic
Author

Getting Methods using URLClassLoader

Andy Peter
Greenhorn

Joined: Feb 12, 2002
Posts: 12
Hi,
If I use URLClassLoader to load a class then do I need all other dependent jars in the classpath to invoke the class.getDeclaredMethods()? would it be throwing an exception if I don't include the jars, that my class is dependent on, in the classpath.
Thanks.
Thomas Smets
Ranch Hand

Joined: Dec 11, 2001
Posts: 111
Andy,
could you reformulate ?
I really don't understand what you want !
Thomas,


Thomas Smets
Just another developper
Steve Deadsea
Ranch Hand

Joined: Dec 03, 2001
Posts: 125
It would most likely throw a ClassNotFoundException if the jar files that contain the classes are not present.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Getting Methods using URLClassLoader