How to load a jar file at runtime
        Posted  
        
            by 
                Amir Arad
            
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Amir Arad
        
        
        
        Published on 2008-10-11T21:42:22Z
        Indexed on 
            2010/12/25
            4:54 UTC
        
        
        Read the original article
        Hit count: 303
        
Hi,
I was asked to build a java system that will have the ability to load new code (expantions) while running. How do I re-load a jar file while my code is running? or how do I load a new jar?
Obviously, since constant up-time is important, I'd like to add the ability to re-load existing classes while at it (if it does not complicate things too much). What are the things I should look out for? (think of it as two different questions - one regarding reloading classes at runtime, the other regarding adding new classes).
© Stack Overflow or respective owner