how to load same class from different jars

Posted by HK Agarwal on Stack Overflow See other posts from Stack Overflow or by HK Agarwal
Published on 2010-05-18T01:27:21Z Indexed on 2010/05/18 1:30 UTC
Read the original article Hit count: 391

Filed under:
|

I have a class Client.java in two different jars jar1 & jar2 Now at run time i want to decide which Client.class loaded like

if (country==india){
         // load Client class of jar1
) else{
        load client class from jar2 
}

can i do that...

© Stack Overflow or respective owner

Related posts about java

Related posts about jar