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
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Java in General
Reply 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://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Getting Methods using URLClassLoader
 
Similar Threads
Remote Classpath Loader
Classpath required on client\server?? Please suggest
Setting classpath to test connection to database
Problem with executable jar file
ClassLoader quandary