This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Getting Methods using URLClassLoader

 
Andy Peter
Greenhorn
Posts: 12
  • 0
  • 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
  • 0
  • 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
  • 0
  • 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.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic