• Post Reply Bookmark Topic Watch Topic
  • New Topic

loading JAR file at run time and then reading it...  RSS feed

 
Srudeep Kumar Reddy Katamreddy
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

This is srudeep. Currently am facing some problems.

1. my project needs a JAR file which contains .class files to be loaded dynamically at runtime.
2. Using the class name which i know, i should search the JAR file loaded for the existance of that class.
3. If that class exists then i should create an instance of that class.
4. After i create instance i have to call the fuction which is already in the class(provided i know the fuction's name earlier).

But as a beginner am not able to do this.... can any one help me in performing the required task???
 
Campbell Ritchie
Marshal
Posts: 56595
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Don't ask the same question twice.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!