• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Getting Methods using URLClassLoader

 
Andy Peter
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 111
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Andy,
could you reformulate ?
I really don't understand what you want !
Thomas,
 
Steve Deadsea
Ranch Hand
Posts: 125
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It would most likely throw a ClassNotFoundException if the jar files that contain the classes are not present.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic