aspose file tools
The moose likes Java in General and the fly likes loading JAR file at run time and then reading it... Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "loading JAR file at run time and then reading it..." Watch "loading JAR file at run time and then reading it..." New topic
Author

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

Srudeep Kumar Reddy Katamreddy
Greenhorn

Joined: Mar 25, 2008
Posts: 4
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
Sheriff

Joined: Oct 13, 2005
Posts: 32712
    
    4
Don't ask the same question twice.
 
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: loading JAR file at run time and then reading it...
 
Similar Threads
Jar files
deploying to tomcat from ant
How to find the real path of the object passed to a method ?
Use Reflection to "find" classes
How to load a JAR file dynamically while runtime...